sindresorhus / screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API
https://sindresorhus.com/screenfull
MIT License
7.08k stars 698 forks source link

Entering fullscreen with F11 does not trigger onchange #26

Closed jameshfisher closed 11 years ago

jameshfisher commented 11 years ago

STR:

Expected behavior: "Is fullscreen: true".

Actual behavior: "Is fullscreen: false".

This is the case in latest Chrome and Firefox.

Are my expectations wrong? Is the fullscreen mode that's entered using F11 different from the fullscreen mode that can be triggered using the JS API? And if so, how do I detect entering/leaving the browser's fullscreen mode?

sindresorhus commented 11 years ago

It's different and you can't. By design by the browser vendors.