浏览代码

tiny fix 2

David Catuhe 7 年之前
父节点
当前提交
7192abe0eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sandbox/index.js

+ 1 - 1
sandbox/index.js

@@ -94,7 +94,7 @@ if (BABYLON.Engine.isSupported()) {
                 framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
             }
 
-            currentScene.activeCamera.pinchPrecision = currentScene.activeCamera.radius / 100;
+            currentScene.activeCamera.pinchPrecision = 100 / currentScene.activeCamera.radius;
         }
 
         currentScene.activeCamera.attachControl(canvas);