In the following code I have a simple "taphold" event defined, so summon an alert with some text. The problem is that a simple tap will trigger this event as well. The point is that the user has to hold the tap to proceed (in this case alert a text).
What is causing this behavior?
$("#button").on("taphold", function() {
alert("Good day, sir!");
});
So as mentioned before, a single tap will trigger this event. How can I prevent this from happening?