Browse Source

Don't show hotspots until panorama is loaded.

pull/26/head
Matthew Petroff 10 years ago
parent
commit
5b70de1c2d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/js/pannellum.js

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

@@ -158,7 +158,6 @@ function init() {
} }
document.getElementById('page').className = 'grab'; document.getElementById('page').className = 'grab';
createHotSpots();
} }


function anError() { function anError() {
@@ -550,6 +549,9 @@ function renderInit() {
document.getElementById('compass').style.display = 'none'; document.getElementById('compass').style.display = 'none';
} }
// Show hotspots
createHotSpots();
// Hide loading display // Hide loading display
document.getElementById('load_box').style.display = 'none'; document.getElementById('load_box').style.display = 'none';
loaded = true; loaded = true;


Loading…
Cancel
Save