瀏覽代碼

webkitFullScreenElement to webkitFullscreenElement

Notice the change in capitalization of "Screen" to "screen"
slawrence 10 年之前
父節點
當前提交
cde7e89898
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 );
 			}
 		}