From af7b26efabaf85e1b207a0b116e9251b9ad88a8e Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 24 Aug 2015 17:18:51 +0200 Subject: [PATCH] Improved camera stuff --- js/l3d/src/cameras/PointerCamera.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/l3d/src/cameras/PointerCamera.js b/js/l3d/src/cameras/PointerCamera.js index 6dd8177..2d4a8e8 100644 --- a/js/l3d/src/cameras/PointerCamera.js +++ b/js/l3d/src/cameras/PointerCamera.js @@ -340,8 +340,8 @@ L3D.PointerCamera.prototype.normalMotion = function(time) { if ( this.isLocked() || this.dragging) { - this.theta += (this.mouseMove.x * 20 / time); - this.phi -= (this.mouseMove.y * 20 / time); + this.theta += (this.mouseMove.x * time / 20); + this.phi -= (this.mouseMove.y * time / 20); this.mouseMove.x = 0; this.mouseMove.y = 0;