kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Touch is too sensitive in Android Firefox #5

Open kornelski opened 10 years ago

kornelski commented 10 years ago

Firefox is copying a scrolling quirk/bug from WebKit, but has touch more sensitive than WebKit:

https://bugzilla.mozilla.org/show_bug.cgi?id=653009

http://lists.w3.org/Archives/Public/www-dom/2014JanMar/0015.html

If I can't get spec and browsers to change, I'll have to work around it, sigh ;)

TNT-RoX commented 10 years ago

workaround here https://github.com/TNT-RoX/android-swipe-shim

kornelski commented 10 years ago

Thanks for the tip. That's a brilliant workaround, but it's also quite hacky. I'm a bit worried it could cause problems.

TNT-RoX commented 10 years ago

@pornel Not sure how useful this will be to you, but another method to try is to toggle pointer-events on your scrolling element instead of preventdefault which will stop sending touch events to webview. I think I should write a shim for this too :) "hacky" code is more stable now.