touch events
Events such as touchstart and touchmove fired when fingers touch and move on a touchscreen.
In more detail
Pointer Events are the modern, unified alternative for most needs. When you do listen to touch events, mark listeners passive unless you really must cancel scrolling.
Related terms
- Pointer Events — A single set of events, such as pointerdown and pointermove, that covers mouse, pen and touch input with one code path.
- passive event listener — An event listener registered with { passive: true }, which promises never to call preventDefault, so the browser can scroll immediately without waiting for it.
- touch-action — The CSS property that tells the browser in advance which touch gestures it should handle itself, such as vertical panning, and which to leave to your code.
Taught in
- Passive Listeners, Scroll Performance And Touch Interactions — Frontend Architecture & Web Platform
- Pointer Events, Focus Trapping And Keyboard Accessibility — Frontend Architecture & Web Platform