瀏覽代碼

Use strict comparison.

pull/70/head
Matthew Petroff 9 年之前
父節點
當前提交
dba5e8ff97
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/js/pannellum.js

+ 2
- 2
src/js/pannellum.js 查看文件

@@ -743,12 +743,12 @@ function keyRepeat() {
diff = Math.min(diff, 1.0);
// If minus key is down
if (keysDown[0] && config.keyboardZoom == true) {
if (keysDown[0] && config.keyboardZoom === true) {
setHfov(config.hfov + (zoomSpeed * 0.8 + 0.5) * diff);
}
// If plus key is down
if (keysDown[1] && config.keyboardZoom == true) {
if (keysDown[1] && config.keyboardZoom === true) {
setHfov(config.hfov + (zoomSpeed * 0.8 - 0.2) * diff);
}


Loading…
取消
儲存