I am using touchswipe for a web app, but I would also like it to work on the desktop (specifically chrome). However it is firing the click after a swipe. Is there a way to prevent it doing this ?
I have a jsfiddle for this
$(".swiper").swipe({
tap: function(event, target) {
alert('tap');
},
swipe:function(event, direction, distance, duration, fingerCount){
alert('swipe');
}
});
$(".swiper").on("click",function () {alert("click")});
I have tried return false , stopPropogation etc but to no avail.