enterFullscreen() does not work with native fullscreen

smares's Avatar

smares

24 Aug, 2012 08:56 PM

Is it me, or does enterFullscreen() not work at all when native fullscreen is enabled? If I initialize the slider with nativeFS set to true, the call to enterFullscreen() doesn't do anything. Clicking on the fullscreen icon at the top right corner opens the fullscreen mode, though. If I set nativeFS to false, enterFullscreen() works fine.
Tested with latest Firefox and Chrome.

  1. Support Staff 1 Posted by Dmitry Semenov on 25 Aug, 2012 08:46 AM

    Dmitry Semenov's Avatar

    Hi,

    The browser fullscreen API can be used only with user interaction (e.g. click, mousedown).

    Browsers do this to prevent malicious usage of such function.

    Dmitry

  2. Dmitry Semenov closed this discussion on 28 Aug, 2012 08:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac