Skip to content

Commit

Permalink
Merge remote-tracking branch 'jdm/patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Dec 25, 2011
2 parents 550df7f + 5873e52 commit ed47997
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,13 @@
fullscreenButton.title = 'Press F11 to enter or leave fullscreen mode';
fullscreenButton.addEventListener( 'click', function ( event ) {

document.body.webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT );
if (document.body.requestFullScreen) {
document.body.requestFullScreen();
} else if (document.body.mozRequestFullScreen) {
document.body.mozRequestFullScreen();
} else if (document.body.webkitRequestFullScreen) {
document.body.webkitRequestFullScreen( Element.ALLOW_KEYBOARD_INPUT );
}

}, false );

Expand Down

0 comments on commit ed47997

Please sign in to comment.