-
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
bug: Ionic gestures not working #2115
Comments
I Tested in many other devices and I found that it only happens in Android 4.4 Also searching in the forums I found out this post: http://forum.ionicframework.com/t/ionicgesture-not-working-on-device-or-emulator/5992/19 Isn't this issue a bit important? 1 every 4 androids are 4.4 (see https://developer.android.com/about/dashboards/index.html)... and it looks like Ionic Gestures in these devices don't work at all. |
OK I think I found it. Debugging a bit the Chrome vs Native build I found out that in the Native build, the WebView was dispatching "touchcancel" everytime I move my finger from its place. From this article: https://plus.google.com/+PaulIrish/posts/KTwfn1Y2238, it seems that Chrome (Let me just point that Android 4.4 has a Chrome-based webview) dispatches a "touchcancel" event whenever he finds that a scrolling is happening. Might be this? Is there any way to fix that? |
Nah, now I defenitely found it! yay 1st link: https://developer.android.com/guide/webapps/migrating.html quote in "Handling Touch Events in JavaScript": Also, this stackoverflow helped: http://stackoverflow.com/questions/10367854/html5-android-touchcancel Then, if I put a |
Further testing I found out that this "patch" breaks ionic scrolling, so I'm not posting a pull request for it. But then this patch is not really needed if using scroll: -> With So the best solution by now is to keep the scroll in the |
I think you got it right. It's the same issue that has been draggin' for a while. I opened an issue a while ago but have given up on this: #1057 |
My "patch" was to put a What I did to my app, as a workaround, is to keep the scroll in the content. If your element inside the content is using CSS |
Confirmed, we should update our implementation of Hammer.JS. Many gesture events are not firing in Android KitKat |
This is actually a duplicate of #1729. Lets continue the discussion there. |
Curious why all of these issues are closed? Using ioninc-1.0.0-rc5 I am still seeing this issue for pinch, pinchin, pinchout, transform events on Android 4.4.0 device. When I try on an Android 5.0 device pinch, pinchin, pinchout, and transform are captured flawlessly. Is there an accepted workaround? |
+1 |
+1 the issue is not fixed in latest v1 release, should we reopen it or just create a new one? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Type: bug
Platform: android 4.4 webview
I haven't tried in iOS "native hybrid", but in phone's browser it works perfectly, even the pinch gesture (at least for Android 4.4 and iOS 7)
I have made an app with a div that has the ionic gestures listeners in it. Then in the top there's another div that says which gestures have been detected.
What happens in the "native" android version:
Plunker here: http://plnkr.co/edit/XYrvChZ6o92r94mSt8Qb?p=preview
Project zip file: http://www.livewind.org/ionic/gestures.zip
The text was updated successfully, but these errors were encountered: