Merge pull request #11747 from gdh1995/fix-removing-wheel
Add `passive: false` when removing wheel listeners
This commit is contained in:
commit
ff0f9fd018
@ -1719,7 +1719,7 @@ const PDFViewerApplication = {
|
||||
const { _boundEvents } = this;
|
||||
|
||||
window.removeEventListener("visibilitychange", webViewerVisibilityChange);
|
||||
window.removeEventListener("wheel", webViewerWheel);
|
||||
window.removeEventListener("wheel", webViewerWheel, { passive: false });
|
||||
window.removeEventListener("click", webViewerClick);
|
||||
window.removeEventListener("keydown", webViewerKeyDown);
|
||||
window.removeEventListener("resize", _boundEvents.windowResize);
|
||||
|
@ -437,7 +437,9 @@ class PDFPresentationMode {
|
||||
_removeWindowListeners() {
|
||||
window.removeEventListener("mousemove", this.showControlsBind);
|
||||
window.removeEventListener("mousedown", this.mouseDownBind);
|
||||
window.removeEventListener("wheel", this.mouseWheelBind);
|
||||
window.removeEventListener("wheel", this.mouseWheelBind, {
|
||||
passive: false,
|
||||
});
|
||||
window.removeEventListener("keydown", this.resetMouseScrollStateBind);
|
||||
window.removeEventListener("contextmenu", this.contextMenuBind);
|
||||
window.removeEventListener("touchstart", this.touchSwipeBind);
|
||||
|
Loading…
x
Reference in New Issue
Block a user