freealise commited on
Commit
9d1d1aa
·
verified ·
1 Parent(s): 5dabc1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 - r_old) > 1/16) {
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;