diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 077fa57..417d4a8 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1249,6 +1249,7 @@ function keyRepeat() { // "Inertia" if (diff > 0 && !config.autoRotate) { // "Friction" + config.friction = config.friction == undefined ? defaultConfig.friction : config.friction; var slowDownFactor = 1 - config.friction; // Yaw