Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-initiated fullscreen is not detected by isFullscreen #178

Open
kalenkovich opened this issue Jul 3, 2020 · 2 comments
Open

User-initiated fullscreen is not detected by isFullscreen #178

kalenkovich opened this issue Jul 3, 2020 · 2 comments

Comments

@kalenkovich
Copy link

When the user goes fullscreen by pressing F11 screenfull.isFullscreen stays false. Tested using the demo page on Chrome, Firefox, and Edge.

@Richienb
Copy link
Contributor

@LeifHwang
Copy link

When the user goes fullscreen by pressing F11 screenfull.isFullscreen stays false. Tested using the demo page on Chrome, Firefox, and Edge.

you can listen the window's keydown event, when the event key equals 'F11', call the method preventDefault() and then call screenfull.toggle()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants