You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when zooming in on iOS, it uses the native zoom from Safari/WebKit/UIkit, meaning the toolbar may disappear and the text gets blurry.
Is there a way to use the recently introduced pinch-to-zoom functionality on mobile devices in viewer.html? The merge #15886 mentioned in #2582 appears to be related, but I could not figure out how to use or enable it. Thanks.
The text was updated successfully, but these errors were encountered:
Assuming that you're talking about the default viewer, i.e. https://github.com/mozilla/pdf.js#online-demo, then pinch-to-zoom should be enabled and working by default.[1]
Hence this is likely Safari being "helpful" and overriding our custom pinch-implementation, however please keep in mind that Firefox is the primary development target for this library.
[1] WFM, using a Windows 11 laptop with a touch-screen in both Mozilla Firefox and Google Chrome. Additionally it also works fine with Firefox for Android (on a phone).
The problem is the iframe which appears to prevent the pinch gesture from being passed on to the embedded document. Loading viewer.html directly without iframe solves this issue.
I wanted to avoid modifying the default viewer (favicon and title) by embedding it, but it looks like I will have to do so after all.
I am trying to use the PDF viewer in an
<iframe>
like this:However, when zooming in on iOS, it uses the native zoom from Safari/WebKit/UIkit, meaning the toolbar may disappear and the text gets blurry.
Is there a way to use the recently introduced pinch-to-zoom functionality on mobile devices in
viewer.html
? The merge #15886 mentioned in #2582 appears to be related, but I could not figure out how to use or enable it. Thanks.The text was updated successfully, but these errors were encountered: