-
Notifications
You must be signed in to change notification settings - Fork 204
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
Can't zoom or pinch image in ionic 1.2 #34
Comments
It can be fixed by adding |
Thanks, @phuongpt! I just ran into this on Friday. |
so there's no way to zoom with native scroll? |
Doesn't work on Android 6.0.1, Ionic 1.3.1. Code from ion-scroll example with |
I ended up writing my own pinch and zoom engine to enable this for native scroll. basically, i had to do a crazy thing where i doubled the size of my ion-scroll, then used pinch to apply a css transform scale() on the whole scroll area... don't get me started on how hard it was to rectify drag and drop coordinates after this. So, believe me, I tried every trick I could before resorting to this. Does anyone know if ionic 2 will support this, or if this is a huge shortfall of Cordova? |
Why doesn't NATIVE scroll support zooming? Obviously a natively scrolled website in the browser can pinch and zoom. Otherwise, here's the math to convert coordinates to and from the manually transformed ion-scroll, assuming you resize it to 2x window dimensions.
|
Adding |
I fixed changing the global configuration: More in this answer of the forum |
this is the #1 Jank in my application. so there's no way to zoom with native scroll? JS scroll is not performant enough. |
Platform: Android 5.1.1
After updating to 1.2.1 from 1.1, zooming and pinch seems broken in the ion-scroll, there is my code:
HTML:
JS:
The text was updated successfully, but these errors were encountered: