diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 179b3f5..f4e8a8a 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -608,6 +608,7 @@ function keyRepeat() { newTime = Date.now(); } var diff = (newTime - prevTime) * config.hfov / 1700; + diff = Math.min(diff, 1.0); // If minus key is down if (keysDown[0]) {