Touch event handling in JS
Web browsers on touch devices can record touch events and send them to JS for processing.
Your own JS can handle all touches on the page, or on an element.
So you can give touch events a special meaning in your website or web application.
- MDN web docs
- w3schools
- To prevent the browser's default touch handling from overriding our touch handling,
we apply this style to the body or element:
touch-action: none
Demos (see on non-Apple touch device)