Zepto swipe void (PIT)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.