Browse Source

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

tags/2.2.0
Matthew Petroff 8 years ago
parent
commit
c5ff999e16
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/pannellum.js

+ 1
- 0
src/js/pannellum.js View File

@@ -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…
Cancel
Save