I'm using the touchend
event to prevent ios from requiring two touches to fire href
links.
This works fine however it is firing the links unintentionally when scrolling.
I know that the the solution is to implement the touchstart
to see if there is movement, but I'm a jquery novice and I'm not sure how apply this.
Here is the touchend
code
$('a').on('touchend', function(e) {
var el = $(this);
var link = el.attr('href');
window.location = link;
});
Hope someone can help.
Thanks