Explorar el Código

fix a copy&paste error on check for movement stop if opposite controls are pressed (#564)

pull/567/head
David von Oheimb hace 6 años
committed by Matthew Petroff
padre
commit
d402e4afd5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js Ver fichero

@@ -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])) {


Cargando…
Cancelar
Guardar