107
rated 0 times
[
108]
[
1]
/ answers: 1 / hits: 70470
/ 12 Years ago, tue, november 13, 2012, 12:00:00
How can I capture a user's tap event with pure JS? I cannot use any libraries, unfortunately.
More From » javascript
How can I capture a user's tap event with pure JS? I cannot use any libraries, unfortunately.
The click
event is triggered on mouse click as well as on a touch click.
The touchstart
event is triggered when the screen is touched.
The touchend
event is triggered when the touch ends. If the default action is prevented, a click
event will not trigger.
http://www.w3.org/TR/touch-events/