Browse Source

Cleanup.

pull/952/head
Matthew Petroff 3 years ago
parent
commit
872b1b89d9
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/js/pannellum.js

+ 2
- 4
src/js/pannellum.js View File

@@ -713,14 +713,12 @@ function showInteractionMessage(interactionMsg) {
infoDisplay.interactionMsg.style.opacity = 1;

infoDisplay.interactionMsg.innerHTML = '<p>' + interactionMsg + '</p>';
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);


Loading…
Cancel
Save