var moved = false;
$(dom).bind("touchend", function(touchEndFn) {
if (!moved) {
// 点击事件
}
moved = false;
});
$(dom).bind("touchmove", function() {
moved = true;
console.log("moving");
});
var moved = false;
$(dom).bind("touchend", function(touchEndFn) {
if (!moved) {
// 点击事件
}
moved = false;
});
$(dom).bind("touchmove", function() {
moved = true;
console.log("moving");
});
转载于:https://my.oschina.net/u/2371743/blog/918457