0

When comparing the following 2 event listeners:

$("#button").click(myFunc);

and

$("#button").on("touchstart", myFunc);

Why is a touchscreen device's response to the click event slower than the touch event, what determines this i.e the order of operations.

1 Answer 1

4

You don't have a click until your finger releases its pressure. The click is a consequence of touchend, not touchstart.

Most often there's also a delay between the touchend and the click so that a double tap can be detected (then a click event isn't sent).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.