瀏覽代碼

Prevent friction value of undefined breaking inertia

pull/689/head
Will Calderbank 6 年之前
父節點
當前提交
23d32ffd20
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/js/pannellum.js

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

@@ -1249,6 +1249,7 @@ function keyRepeat() {
// "Inertia"
if (diff > 0 && !config.autoRotate) {
// "Friction"
config.friction = config.friction == undefined ? defaultConfig.friction : config.friction;
var slowDownFactor = 1 - config.friction;

// Yaw


Loading…
取消
儲存