2
0
Эх сурвалжийг харах

webkitFullScreenElement to webkitFullscreenElement

Notice the change in capitalization of "Screen" to "screen"
slawrence 10 жил өмнө
parent
commit
cde7e89898

+ 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 );
 			}
 		}