From 872b1b89d94e2d52f922a235246e956f54aeecb7 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sat, 13 Feb 2021 11:38:58 -0500 Subject: [PATCH] Cleanup. --- src/js/pannellum.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 4289276..c812b0b 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -713,14 +713,12 @@ function showInteractionMessage(interactionMsg) { infoDisplay.interactionMsg.style.opacity = 1; infoDisplay.interactionMsg.innerHTML = '

' + interactionMsg + '

'; - controls.load.style.display = 'none'; - infoDisplay.load.box.style.display = 'none'; infoDisplay.interactionMsg.style.display = 'table'; fireEvent('messageshown'); - clearTimeout(infoDisplay.t3); + clearTimeout(infoDisplay.interactionMsg.timeout); infoDisplay.interactionMsg.removeEventListener('transitionend', clearInteractionMessage); - infoDisplay.t3 = setTimeout(function() { + infoDisplay.interactionMsg.timeout = setTimeout(function() { infoDisplay.interactionMsg.style.opacity = 0; infoDisplay.interactionMsg.addEventListener('transitionend', clearInteractionMessage); }, 2000);