sindresorhus / screenfull

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

Chrome fullscreen exit on Ajax/pushstate #42

Closed mjau-mjau closed 10 years ago

mjau-mjau commented 10 years ago

Sorry, this question is not strictly related to screenfull, but does anyone know why my ajax app exists fullscreen when loading ajax, injecting data into DOM, and using html5 pushstate? I assume there is some restriction with the fullscreen API, that exsts the fullscreen on DOM change or pushstate change ...

In fact, it remains fullscreen in Safari, but exits in Chrome ...

sindresorhus commented 10 years ago

I don't know, but I would ask on StackOverflow as this is more a general question about the JS Fullscreen API.