Skip to content

Commit

Permalink
Fix edge to edge fullscreen on Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob authored Aug 19, 2021
1 parent e4eb8e6 commit 0fbbe57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@
fullscreenButton.title = 'Press F11 to enter or leave fullscreen mode';
fullscreenButton.addEventListener( 'click', function ( event ) {

if (document.body.requestFullscreen) {
document.body.requestFullscreen( { navigationUI: 'hide' } );
} else if (document.body.webkitRequestFullScreen) {
document.body.webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT );
if (document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen( { navigationUI: 'hide' } );
} else if (document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen();
}

}, false );
Expand Down

0 comments on commit 0fbbe57

Please sign in to comment.