Skip to content

Interactivity

Touch Action

Utilities for controlling how an element can be scrolled and zoomed on touchscreens.

Quick reference

ClassDescription
touch-autotouch-action: auto
touch-nonetouch-action: none
touch-pan-xtouch-action: pan-x
touch-pan-lefttouch-action: pan-left
touch-pan-righttouch-action: pan-right
touch-pan-ytouch-action: pan-y
touch-pan-uptouch-action: pan-up
touch-pan-downtouch-action: pan-down
touch-pinch-zoomtouch-action: pinch-zoom
touch-manipulationtouch-action: manipulation

Basic usage

Setting the touch action

Use the touch-{action} utilities to control how an element can be scrolled (panned) and zoomed (pinched) on touchscreens.