Add passive: false to the wheel event listener used in PDFPresentationMode (issue 11735, PR 10765 follow-up)

This commit is contained in:
Jonas Jenwald 2020-03-23 17:07:32 +01:00
parent b86df97725
commit 59eada6972

View File

@ -423,7 +423,7 @@ class PDFPresentationMode {
window.addEventListener("mousemove", this.showControlsBind);
window.addEventListener("mousedown", this.mouseDownBind);
window.addEventListener("wheel", this.mouseWheelBind);
window.addEventListener("wheel", this.mouseWheelBind, { passive: false });
window.addEventListener("keydown", this.resetMouseScrollStateBind);
window.addEventListener("contextmenu", this.contextMenuBind);
window.addEventListener("touchstart", this.touchSwipeBind);