From 7278d9a3b88cd5ed5a1fdb7bbdba96416be935a5 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sat, 17 Oct 2020 11:34:59 -0400 Subject: [PATCH] Tweak keyboard pan / zoom speeds. --- src/js/pannellum.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 190e6ad..f3ba9d6 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1240,12 +1240,12 @@ function keyRepeat() { if (prevTime === undefined) { prevTime = newTime; } - var diff = (newTime - prevTime) * config.hfov / 1700; - diff = Math.min(diff, 1.0); + var diff = (newTime - prevTime) * config.hfov / 1200; + diff = Math.min(diff, 10.0); // Avoid jump if something goes wrong with time diff // If minus key is down if (keysDown[0] && config.keyboardZoom === true) { - setHfov(config.hfov + (speed.hfov * 0.8 + 0.5) * diff); + setHfov(config.hfov + (speed.hfov * 0.8 + 0.4) * diff); isKeyDown = true; }