Touchend not firing after touchmove

后端 未结 2 802
暗喜
暗喜 2021-02-13 22:08

I\'m trying to make a page for mobile devices that detects the scrollTop position and scrolls to the top of the page if scrollTop is lower than half th

相关标签:
2条回答
  • 2021-02-13 22:42

    try to attach listener on both touchend and touchcancel.

    $(document).on('touchend touchcancel', function() {
        doSomthing();
    });
    
    0 讨论(0)
  • 2021-02-13 22:50

    I wrote a shim to deal with this problem Probably a bit late for you but it might help someone. https://github.com/TNT-RoX/android-swipe-shim

    0 讨论(0)
提交回复
热议问题