Zepto中的Swipe事件失效

需要阻止浏览器默认滑动的事件

document.addEventListener('touchmove', function (event) {
    event.preventDefault();
}, false);
$('body').swipeUp(function(){
      console.log('上滑');
});

 

posted @ 2017-12-04 11:11  哥哦狗子  阅读(708)  评论(0编辑  收藏  举报