Skip to main content

Touch Action

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

CSS Property:touch-action
Classes:10

Touch Action Classes

ClassCSS
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;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[touch-action:value]

Responsive Variants

Apply touch action utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:touch-auto
768px+md:md:touch-auto
1024px+lg:lg:touch-auto
1280px+xl:xl:touch-auto
1536px+2xl:2xl:touch-auto