I have swipeleft/swiperight working well in my app but when the user does the mousedown over an anchor tag, the swiping action is not triggered.
How can I make the swipe work even when the user does the mousedown on an anchor tag?
EDIT: It looks like this is only an issue in browsers on computers - tablets work fine.
You can swipe with the normal left button in any modern browser on the desktop.
Make sure you prevent the default action on the dragstart event on your div.
$("div").bind('dragstart', function(event) {event.preventDefault(); });
I have a working copy here...
http://jsfiddle.net/38nXe/
You can swipe on a desktop browser using the right mouse button. It is not very elegant as it also opens the context menu. But it works everywhere. Alex
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With