浏览代码

cap diff so panorama doesn't jump after inertia + wait time

pull/42/head
Daniel Naber 9 年前
父节点
当前提交
07622a2b3b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/js/pannellum.js

+ 1
- 0
src/js/pannellum.js 查看文件

@@ -608,6 +608,7 @@ function keyRepeat() {
newTime = Date.now();
}
var diff = (newTime - prevTime) * config.hfov / 1700;
diff = Math.min(diff, 1.0);
// If minus key is down
if (keysDown[0]) {


正在加载...
取消
保存