-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl-wheel zooming also scales UI in Chrome #10761
Comments
It's not clear what "previous versions" refer to here, but this is actually a case where the Chrome browser itself is unfortunately breaking web compatibility; see https://developers.google.com/web/updates/2019/02/scrolling-intervention for additional details. Generally speaking this cannot be "fixed", or rather worked-around since it's not our fault, in the PDF.js default viewer since we still support IE11 for the time being, which according to https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Browser_compatibility doesn't support the |
Sorry, previous version of Chrome. If I understand you are saying that adding I will attempt to fork to see if I can fix the problem based on your suggestion. Thank you. |
Fork with fix here: https://github.com/kuro68k/pdf.js |
I made a fixed version available for Chrome here: https://chrome.google.com/webstore/detail/pdf-viewer/khoagkdmmnmmimpmdbeapnlmkkiiikae |
The problem should be fixed by the pull request above and will be in the next release. Maybe a Chrome extension update can already be done (/cc @Rob--W for that)? That way no fork/other extension than the official one should be necessary. |
Well, I should be happy it's being fixed at least. I'll pull mine once it's out. |
I'll include a fix for #10645 and then publish the update. |
I published an update as https://github.com/Rob--W/pdf.js/releases/tag/chrome-2.2.191 |
Attach (recommended) or Link to PDF file here: Any PDF will work
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
Document is zoomed in/out
What went wrong? (add screenshot)
The PDF reader UI is also scaled. It appears that Chrome is also zooming the entire page, including the PDF reader UI, as well as the PDF reader also zooming the document.
In previous versions only the document would be zoomed.
Note how the PDF viewer UI is scaled in this image. It can also be made absurdly small by zooming out:
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm
The text was updated successfully, but these errors were encountered: