瀏覽代碼

Fix orientationAlignNorth.

pull/880/head
Nico Höllerich 4 年之前
父節點
當前提交
2d321a56dd
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/js/pannellum.js

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

@@ -1665,7 +1665,7 @@ function orientationListener(e) {
orientation += 1;
} else if (orientation === 10) {
// Record starting yaw to prevent jumping
orientationYawOffset = q[2] / Math.PI * 180 + config.orientationAlignNorth ? (config.northOffset || 0) : config.yaw;
orientationYawOffset = q[2] / Math.PI * 180 + (config.orientationAlignNorth ? (config.northOffset || 0) : config.yaw);
orientation = true;
requestAnimationFrame(animate);
} else {


Loading…
取消
儲存