瀏覽代碼

Fix event listener removal regression introduced in 64c337beff.

pull/707/head
Matthew Petroff 6 年之前
父節點
當前提交
f05615045e
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      src/js/pannellum.js

+ 5
- 5
src/js/pannellum.js 查看文件

@@ -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…
取消
儲存