【发布时间】:2015-01-26 19:39:19
【问题描述】:
TouchSwipe 是一个很棒的插件,可以将滑动添加到您的网站。但是当这个插件被激活时,我在选择文本时遇到了问题。
$(window).swipe( {
//Generic swipe handler for all directions
swipeRight:function(event, direction, distance, duration, fingerCount) {
dnlShow();
},
swipeLeft:function(event, direction, distance, duration, fingerCount) {
dnlHide();
},
//Default is 75px, set to 0 for demo so any distance triggers swipe
threshold: 75
});
有什么好的办法可以解决这个问题吗?
【问题讨论】:
标签: javascript jquery mobile touch swipe