Skip to content

Commit

Permalink
Temporary workaround for stuck zoom on older Firefox versions
Browse files Browse the repository at this point in the history
`scrollend` event is just not called if rapidly scrolling with mouse wheel and pressing Cmd/Ctrl to zoom.
The problem doesn’t occur on Firefox 132, and possibly some earlier versions
  • Loading branch information
mrtcode committed Nov 27, 2024
1 parent cffab12 commit 8ac2ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ const PDFViewerApplication = {
}

mainContainer.removeEventListener("scroll", scroll);
this._isScrolling = true;
// this._isScrolling = true;
mainContainer.addEventListener("scrollend", scrollend, { signal });
mainContainer.addEventListener("blur", scrollend, { signal });
};
Expand Down

0 comments on commit 8ac2ccc

Please sign in to comment.