浏览代码

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

pull/567/head
David von Oheimb 6 年前
committed by Matthew Petroff
父节点
当前提交
d402e4afd5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
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])) {


正在加载...
取消
保存