Browse Source

cap diff so panorama doesn't jump after inertia + wait time

pull/42/head
Daniel Naber 9 years ago
parent
commit
07622a2b3b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/pannellum.js

+ 1
- 0
src/js/pannellum.js View File

@@ -608,6 +608,7 @@ function keyRepeat() {
newTime = Date.now(); newTime = Date.now();
} }
var diff = (newTime - prevTime) * config.hfov / 1700; var diff = (newTime - prevTime) * config.hfov / 1700;
diff = Math.min(diff, 1.0);
// If minus key is down // If minus key is down
if (keysDown[0]) { if (keysDown[0]) {


Loading…
Cancel
Save