Browse Source

Allow minimum and maximum HFOV to be equal (fixes #207).

pull/234/head
Matthew Petroff 8 years ago
parent
commit
a30ea8ca5c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/js/pannellum.js

+ 2
- 2
src/js/pannellum.js View File

@@ -1913,9 +1913,9 @@ function constrainHfov(hfov) {
if (config.type == 'multires' && renderer) {
minHfov = Math.min(minHfov, renderer.getCanvas().width / (config.multiRes.cubeResolution / 90 * 0.9));
}
if (minHfov >= config.maxHfov) {
if (minHfov > config.maxHfov) {
// Don't change view if bounds don't make sense
console.log('HFOV bounds do not make sense (minHfov >= maxHfov).')
console.log('HFOV bounds do not make sense (minHfov > maxHfov).')
return config.hfov;
} if (hfov < minHfov) {
return minHfov;


Loading…
Cancel
Save