Kaynağa Gözat

Fix event listener removal regression introduced in 64c337beff.

pull/707/head
Matthew Petroff 6 yıl önce
ebeveyn
işleme
f05615045e
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      src/js/pannellum.js

+ 5
- 5
src/js/pannellum.js Dosyayı Görüntüle

@@ -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);


Yükleniyor…
İptal
Kaydet