瀏覽代碼

Add warning for when HFOV bounds don't make sense.

tags/2.2.0
Matthew Petroff 8 年之前
父節點
當前提交
c5ff999e16
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/js/pannellum.js

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

@@ -1581,6 +1581,7 @@ function setHfov(hfov) {
}
if (minHfov >= config.maxHfov) {
// Don't change view if bounds don't make sense
console.log('HFOV bounds do not make sense (minHfov >= maxHfov).')
return;
} if (hfov < minHfov) {
config.hfov = minHfov;


Loading…
取消
儲存