MikaFil commited on
Commit
fb73464
·
verified ·
1 Parent(s): 8a56f2f

Update orbit-camera.js

Browse files
Files changed (1) hide show
  1. orbit-camera.js +1 -18
orbit-camera.js CHANGED
@@ -425,15 +425,6 @@ OrbitCameraInputMouse.prototype.onMouseMove = function (event) {
425
  this.orbitCamera.yaw = currYaw - deltaYaw;
426
  }
427
 
428
- console.log(
429
- '[Mouse] currentY=', preY.toFixed(3),
430
- 'proposedY=', proposedY.toFixed(3),
431
- 'minY=', minY,
432
- 'deltaX=', event.dx,
433
- 'deltaY=', event.dy,
434
- 'isAtMinY=', isAtMinY,
435
- 'suppressedVertical=', suppressed
436
- );
437
  } else if (this.panButtonDown) {
438
  this.pan(new pc.Vec2(event.x, event.y));
439
  }
@@ -573,15 +564,7 @@ OrbitCameraInputTouch.prototype.onTouchMove = function (event) {
573
  this.orbitCamera.pitch = proposedPitch;
574
  this.orbitCamera.yaw = currYaw - deltaYaw;
575
  }
576
- console.log(
577
- '[Touch] currentY=', preY.toFixed(3),
578
- 'proposedY=', proposedY.toFixed(3),
579
- 'minY=', minY,
580
- 'deltaX=', (touch.x - this.lastTouchPoint.x),
581
- 'deltaY=', (touch.y - this.lastTouchPoint.y),
582
- 'isAtMinY=', isAtMinY,
583
- 'suppressedVertical=', suppressed
584
- );
585
  this.lastTouchPoint.set(touch.x, touch.y);
586
  } else if (touches.length === 2) {
587
  var currentPinchDistance = this.getPinchDistance(touches[0], touches[1]);
 
425
  this.orbitCamera.yaw = currYaw - deltaYaw;
426
  }
427
 
 
 
 
 
 
 
 
 
 
428
  } else if (this.panButtonDown) {
429
  this.pan(new pc.Vec2(event.x, event.y));
430
  }
 
564
  this.orbitCamera.pitch = proposedPitch;
565
  this.orbitCamera.yaw = currYaw - deltaYaw;
566
  }
567
+
 
 
 
 
 
 
 
 
568
  this.lastTouchPoint.set(touch.x, touch.y);
569
  } else if (touches.length === 2) {
570
  var currentPinchDistance = this.getPinchDistance(touches[0], touches[1]);