瀏覽代碼

清單列表滑鼠不要互動圖片

nate 3 年之前
父節點
當前提交
7aaf1c2cfb
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      script/js/3Dpic-favorite.js

+ 3 - 5
script/js/3Dpic-favorite.js

@@ -147,11 +147,9 @@
 			controls.maxDistance = 10;
 			controls.maxPolarAngle = 0.5 * Math.PI;
 			controls.autoRotate = true;
-			controls.mouseButtons = {
-				LEFT: '',
-				TOP: '',
-				RIGHT: ''
-			}
+			controls.enableZoom = false;
+			controls.enableRotate = false;
+			controls.enablePan = false;
 			scene.userData.controls = controls;