-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Expose pinch-to-zoom from scroller #679
Comments
Definitely would love to see this! |
👍 |
Hmm, I'm not exactly sure the scroll system supports this as-is. Need to dig into it a bit more. |
Any luck with this @mlynch? Would be great to have! |
Hi guys, check this : http://codepen.io/arnaud-f/pen/CDatr |
@Arnaud-F nice work! That's exactly what the solution would be, looks like we just didn't do anything to support the zooming in the scroll view. I'll see about getting this in. Thanks! |
Okay, I added it! You can use it like this: <ion-scroll zooming="true" style="width: 100%; height: 100%">
<img src="blah.jpg" style="width: 2000px; height: 2000px">
</ion-scroll> And thanks @Arnaud-F, couldn't have done it without you :) |
Thanks @mlynch, works perfectly well on iOS, but when I tested it on an Android device It didn't work. The pinch event is not triggered apparently. |
Can this be verified by someone? I would really really like this functionality to be in Ionic... |
@mlynch anything new on this functionality? |
I can verify this with 100% certainty. The issue referenced by @ssassi is valid and should be addressed. For whatever reason, the On Android devices, those are not present. Additionally, if you look at the implementation of gestures by hammer.js, you will notice that they extend events being emitted to include this information, in addition to other things -- the library which is used and implemented in What is more interesting is that the presence of those two additional properties on the Two possible solutions to this issue would be to change the way events are being listened to by the ionic.views.scroll to use @mlynch, your thoughts? |
That's a shame. Just added this feature to a cross platform app, works great on iOS, Android users won't be able to use this for now. |
@CoenWarmer, have no fear! I have patched the issue such that it now works on Android. However, I am currently trying to figure out how best to submit the patch. I will provide an update as they are available here. |
@jcsmith1859 Hi, do you know if it's already implemented in beta 10 ? Because this isn't working for me:
|
@TrkiSF2 this was merged into the master branch and is tagged for beta 10. |
Hello, I know this is a very old issue but wonder if it's possible that a new update broke it on Android ? I'm testing a very simple code :
And it doesn't allow zooming - pinching the screen don't do anything. |
Any news for this zoom problem ? In ionic 1.3.1 it does not work |
+1. Android zoom still does not work |
The scroll system supports it, so we should expose this through the scroll system.
The text was updated successfully, but these errors were encountered: