Zepto Slide plugin Bug
Zepto ' swipe ', ' swipeleft ', ' swiperight ', ' swipeup ', ' swipedown ' touch events in Android 4.4 system except Chrome + Firefox browser + are not valid
Zepto Slide plugin has a bug ...
And the bug author doesn't want to fix it because: I don't have an Android device.
I also can ' t get all about the ' swipe ' to work correctly on Android devices. I use a Nexus 4, Xiaomi 1S.
Zepto Official issues
Preliminary Solutions
Baidu Gmu Sliding Instance page
Fix
https://github.com/madrobby/zepto/issues/315#issuecomment-8386027
Touch.js
. On (' Touchmove mspointermove pointermove ',function(e) { if (_ispointertype = Ispointereventtype (E, ' move ')) &&!isprimarytouch (e))
return Firsttouch = _ispointertype? e:e.touches[
0] Cancellongtap () touch.x2 = Firsttouch.pagex Touch.y2 = firsttouch.pagey DeltaX + = Math.abs (touch. X1-TOUCH.X2) DeltaY + = math.abs (touch.y1-touch.y2) /** * Fix Android 4.4 Swipe event * Https://github.com/madrobby /zepto/issues/315#issuecomment-8386027 * /if (touch.x2 && math.abs (touch.x1-touch.x2) > 10) E.preventdefault ()})
Zepto swipe void (PIT)