mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Remove unnecessary options from removeEventListener
in the web/app.js
file
Only the `capture` parameter matters when removing an event listener, see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener#matching_event_listeners_for_removal
This commit is contained in:
parent
1c0c070847
commit
4ae6132d07
1 changed files with 1 additions and 1 deletions
|
@ -2117,7 +2117,7 @@ const PDFViewerApplication = {
|
|||
return;
|
||||
}
|
||||
|
||||
mainContainer.removeEventListener("scroll", scroll, { passive: true });
|
||||
mainContainer.removeEventListener("scroll", scroll);
|
||||
this._isScrolling = true;
|
||||
mainContainer.addEventListener("scrollend", scrollend, { signal });
|
||||
mainContainer.addEventListener("blur", scrollend, { signal });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue