#
luxiaotao1123
2022-08-19 52b69edc9b8e832f841ea5ab22ba0543134a0353
#
1个文件已修改
21 ■■■■■ 已修改文件
views/sketh/js/InitCommon.js 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
views/sketh/js/InitCommon.js
@@ -86,11 +86,6 @@
let PI_2 = Math.PI / 2; //used by controls below
// let cameraInfoElement = document.getElementById('cameraInfo');
// cameraInfoElement.style.cursor = "default";
// cameraInfoElement.style.userSelect = "none";
// cameraInfoElement.style.MozUserSelect = "none";
let mouseControl = true;
let pointerlockChange;
let fileLoader = new THREE.FileLoader();
@@ -233,7 +228,6 @@
} // end function onWindowResize( event )
function init()
{
@@ -342,21 +336,6 @@
        document.addEventListener('webkitpointerlockchange', pointerlockChange, false);
    } // end if (mouseControl)
    /* // Fullscreen API (optional)
    document.addEventListener("click", function()
    {
        if ( !document.fullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenElement )
        {
            if (document.documentElement.requestFullscreen)
                document.documentElement.requestFullscreen();
            else if (document.documentElement.mozRequestFullScreen)
                document.documentElement.mozRequestFullScreen();
            else if (document.documentElement.webkitRequestFullscreen)
                document.documentElement.webkitRequestFullscreen();
        }
    }); */
    initTHREEjs(); // boilerplate: init necessary three.js items and scene/demo-specific objects