Browse Source

Merge 2babe9783e into 01f932ef81

pull/640/merge
Chase Walden 6 years ago
committed by GitHub
parent
commit
ba99ceb2c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

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

@@ -2145,7 +2145,7 @@ function constrainHfov(hfov) {
// Keep field of view within bounds
var minHfov = config.minHfov;
if (config.type == 'multires' && renderer) {
minHfov = Math.min(minHfov, renderer.getCanvas().width / (config.multiRes.cubeResolution / 90 * 0.9));
minHfov = Math.max(minHfov, renderer.getCanvas().width / (config.multiRes.cubeResolution / 90 * 0.9));
}
if (minHfov > config.maxHfov) {
// Don't change view if bounds don't make sense


Loading…
Cancel
Save