HotStudio / touchy

jQuery plugin for touch events
touchyjs.org/
Other
357 stars 108 forks source link

Fixing scrolling issues on Chrome on Android #16

Closed Naycon closed 10 years ago

Naycon commented 10 years ago

Hi,

We use your fantastic library in our project, and recently we stumbled on a serious bug in Chrome on Android, that makes any swipeable area lose it's ability to detect swipes once the user has scrolled touching that area. The bug is described in these two issues: http://code.google.com/p/android/issues/detail?id=4549 https://code.google.com/p/chromium/issues/detail?id=150779

It is present on some few different Android devices, e.g. 4.1. I recently upgraded a device to Android 4.4 and there it seemes to have been fixed. What happens is basically that Chrome stops sending the touchend event. Since that event never fires, the swipe reset code never runs. You can then only do one swipe (fired via the touchmove trigger), after that the swiping stops.

I've added a fix and also a test page for this. The test page could also serve as an example on how to enable scrolling on swipe-able areas.

Feel free to contact me if you have any questions! Best regards, Johan

fisherwebdev commented 10 years ago

Thanks for this!