You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, May 27th 2020, 12:10pm

Using display.customFullscreenElement

Hello,
Is there any example available how to use display.customFullscreenElement? The documentation doesn't provide info about the type of the attribute. Maybe it's just my lack of understanding how to use it, but any help would be appreciated.
My goal is that when the user clicks/taps the fullscreen button, some certain HTML elements (which live under the same wrapper as KrPano) would be visible.

2

Wednesday, May 27th 2020, 12:26pm

Hi,

this example is using customFullscreenElement - see in the sync.xml:
https://krpano.com/examples/#js-sync-viewers

That variable can point to a custom html element that should be used as 'container' when entering the fullscreen mode.

Best regards,
Klaus

3

Wednesday, May 27th 2020, 12:44pm

Awesome. Thanks for such a quick reply.