Jelajahi Sumber

webkitFullScreenElement to webkitFullscreenElement

Notice the change in capitalization of "Screen" to "screen"
slawrence 10 tahun lalu
induk
melakukan
cde7e89898
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 );
 			}
 		}