Explorar o código

webkitFullScreenElement to webkitFullscreenElement

Notice the change in capitalization of "Screen" to "screen"
slawrence %!s(int64=10) %!d(string=hai) anos
pai
achega
cde7e89898
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/effects/VREffect.js

+ 1 - 1
examples/js/effects/VREffect.js

@@ -160,7 +160,7 @@ THREE.VREffect = function ( renderer, done ) {
 
 		document.addEventListener( fullScreenChange, onFullScreenChanged, false );
 		function onFullScreenChanged() {
-			if ( !document.mozFullScreenElement && !document.webkitFullScreenElement ) {
+			if ( !document.mozFullScreenElement && !document.webkitFullscreenElement ) {
 				self.setFullScreen( false );
 			}
 		}