Touch Action
vel-src: interactivity.css
Utilities for controlling how an element responds to touch input on mobile devices.
| Class | Properties |
|---|---|
| vel-touch-auto | touch-action: auto |
| vel-touch-none | touch-action: none |
| vel-touch-pan-x | touch-action: pan-x |
| vel-touch-pan-y | touch-action: pan-y |
| vel-touch-manipulation | touch-action: manipulation |
Examples
Disable touch scrolling on a map or canvas element
Touch events disabled (map / canvas area)
Allow only vertical panning (e.g. in a horizontal slider)
Scrollable content
Only vertical pan allowed on touch devices.
Horizontal touch gestures are passed through to the parent.