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';
createHotSpots();
}

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


Loading…
Cancel
Save