diff --git a/src/js/pannellum.js b/src/js/pannellum.js index e21503c..75865b3 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1267,7 +1267,7 @@ function keyRepeat() { } // Stop movement if opposite controls are pressed - if (keysDown[0] && keysDown[0]) { + if (keysDown[0] && keysDown[1]) { speed.hfov = 0; } if ((keysDown[2] || keysDown[6]) && (keysDown[3] || keysDown[7])) {