Browse Source

webkitFullScreenElement to webkitFullscreenElement

Notice the change in capitalization of "Screen" to "screen"
slawrence 10 năm trước cách đây
mục cha
commit
cde7e89898
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );
 			}
 		}