property

Touch action — CSS reference

Allows vertical panning gestures while restricting other direct-manipulation gestures on the target. The effective gesture policy also depends on ancestors. Preserve zoom and scrolling where possible; this example checks syntax, not touch hardware.

Formal Syntax & Structure

css syntaxcss
touch-action: pan-y;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>touch-action</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{touch-action:pan-y}</style><body><div id="a">Vertical gesture area</div></body></html>
CSS Reference