Browse Source

Fix event listener removal regression introduced in 64c337beff.

pull/707/head
Matthew Petroff 6 years ago
parent
commit
f05615045e
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/js/pannellum.js

+ 5
- 5
src/js/pannellum.js View File

@@ -3053,17 +3053,17 @@ this.destroy = function() {
dragFix.removeEventListener('dblclick', onDocumentDoubleClick, false);
document.removeEventListener('mousemove', onDocumentMouseMove, false);
document.removeEventListener('mouseup', onDocumentMouseUp, false);
container.removeEventListener('mousewheel', onDocumentMouseWheel, false);
container.removeEventListener('DOMMouseScroll', onDocumentMouseWheel, false);
uiContainer.removeEventListener('mousewheel', onDocumentMouseWheel, false);
uiContainer.removeEventListener('DOMMouseScroll', onDocumentMouseWheel, false);
container.removeEventListener('mozfullscreenchange', onFullScreenChange, false);
container.removeEventListener('webkitfullscreenchange', onFullScreenChange, false);
container.removeEventListener('msfullscreenchange', onFullScreenChange, false);
container.removeEventListener('fullscreenchange', onFullScreenChange, false);
window.removeEventListener('resize', onDocumentResize, false);
window.removeEventListener('orientationchange', onDocumentResize, false);
container.removeEventListener('keydown', onDocumentKeyPress, false);
container.removeEventListener('keyup', onDocumentKeyUp, false);
container.removeEventListener('blur', clearKeys, false);
uiContainer.removeEventListener('keydown', onDocumentKeyPress, false);
uiContainer.removeEventListener('keyup', onDocumentKeyUp, false);
uiContainer.removeEventListener('blur', clearKeys, false);
document.removeEventListener('mouseleave', onDocumentMouseUp, false);
dragFix.removeEventListener('touchstart', onDocumentTouchStart, false);
dragFix.removeEventListener('touchmove', onDocumentTouchMove, false);


Loading…
Cancel
Save