Update app.py
Browse files
app.py
CHANGED
@@ -712,7 +712,7 @@ async(c, o, p, d, n, m, s)=>{
|
|
712 |
y = parseInt(evt.clientY - evt.target.getBoundingClientRect().y);
|
713 |
|
714 |
if (Math.abs(x-xold)>16 || Math.abs(y-yold)>16) {
|
715 |
-
if (Math.abs(BABYLON.Engine.LastCreatedScene.activeCamera.radius
|
716 |
BABYLON.Engine.LastCreatedScene.activeCamera.radius = r_old;
|
717 |
} else {
|
718 |
r_old = BABYLON.Engine.LastCreatedScene.activeCamera.radius;
|
|
|
712 |
y = parseInt(evt.clientY - evt.target.getBoundingClientRect().y);
|
713 |
|
714 |
if (Math.abs(x-xold)>16 || Math.abs(y-yold)>16) {
|
715 |
+
if (Math.abs(BABYLON.Engine.LastCreatedScene.activeCamera.radius) > 16) {
|
716 |
BABYLON.Engine.LastCreatedScene.activeCamera.radius = r_old;
|
717 |
} else {
|
718 |
r_old = BABYLON.Engine.LastCreatedScene.activeCamera.radius;
|