How do you remove the click/tap delay from mobile Safari on iOS?
I have fiddled around with event listeners quite a bit, and have used a bunch of different scripts (
I am not able to directly post a comment to MikeZ recommendation.
I used it successfully, but had to do some additional tweek, especially for android devices.
Instead of calling event.preventDefault();
in gonClick(), I also had to call event.stopImmediatePropagation();
Otherwise you might run in trouble especially, when dynamic elements, such as panels, are opened on top of the element you clicked.
Complete gonClick() method to be used with MikeZ solution:
function gonClick(event) {
for ( var i = 0; i < coordinates.length; i += 2) {
var x = coordinates[i];
var y = coordinates[i + 1];
if (Math.abs(event.clientX - x) < 25 && Math.abs(event.clientY - y) < 25) {
event.stopPropagation();
event.preventDefault();
event.stopImmediatePropagation();
}
}
};