From 5b70de1c2d33a1c86e45de05f1d4ffb44daf9670 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sat, 6 Dec 2014 13:35:49 -0500 Subject: [PATCH] Don't show hotspots until panorama is loaded. --- src/js/pannellum.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index d897a3f..b6b43fa 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -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;