I have the following markup:
<div id="someID" class="target-class">
....
<a href="#page1">
....
</a>
</div>
I am using Zepto to target the "target-class" to apply a double tap, but I don't want the link to be fired. This is my JS code:
$(document).ready(function() {
$(".target-class").live("doubleTap", function(e) {
e.preventDefault();
e.stopPropagation();
var a = $(this).attr("id");
// do something here
});
$("a").live("click", function(e) {
// do something with all my links
});
});
However all of these trigger the link and change the URL pattern (I am using pushState).
This is happening on Mobile Safari for iOS and Android as well.
Any guidance?