From a30ea8ca5c321eee277ef20690301b2fd1fe631f Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Wed, 3 Aug 2016 18:28:27 -0400 Subject: [PATCH] Allow minimum and maximum HFOV to be equal (fixes #207). --- src/js/pannellum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 50f9d69..d34d768 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -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;