-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Is there any possible way to implement pinch & zoom function in the container canvas? #22
Comments
Looking forward to this feature, as I am applying this to a mobile app. |
+1 |
Any news on this? I can't use this without pinch zoom. |
I also am looking for this |
Anyone Implemented this? Help needed! |
I implemented this in Ionic 3.9.2 in a modal. Here is a Gist to show how to implement. |
@tabirkeland That's with buttons though. What about the pinch gesture? |
@jtcrowson I have not had the chance to try it which pinch. You could try using the "pinch" gesture outlined here and calling the |
Biggest issue with using a gesture framework (like hammer.js) on the ng2-pdf-viewer is that it disables touch scrolling. |
Any luck? |
waiting for this as well, tried to get it to work myself but no luck... :( |
I got it to work with pinch (although it's not very smooth), but couldn't get scroll to work with it. |
using hammerjs it is something like that
i am not sure if there is a better way but this works fine currently |
for ionic 3 users here i found an work arround |
using ngx-pinch-zoom, specific query google |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
any one able to do this? |
您的邮件已收到,我会尽快回复O(∩_∩)O
|
Thanks to @cxw13424219787 the solution works perfectly for angular now here are some additional information and resources :- Angular 18+ support of ngx-pinch-zoom its fork as orignal one is outdated npm i @meddv/ngx-pinch-zoom Html Code <pinch-zoom>
<div [style.height.px]="500" [style.width.%]="100">
<pdf-viewer
[src]="'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf'"
[render-text]="true"
[original-size]="false"
[style.height.px]="500">
</pdf-viewer>
</div>
</pinch-zoom> Make sure to give a height on pdf-viewer and its parent element otherwise it won't show. i have tested it and works perfectly without any issues with angular 18. |
您的邮件已收到,我会尽快回复O(∩_∩)O
|
For example using hammer.js?
http://hammerjs.github.io/
The text was updated successfully, but these errors were encountered: