Skip to content

Touch Action

Control touch interactions

Syntax

visual="touch:[value]"

Values

ValueCSS OutputDescription
autotouch-action: autoDefault touch
nonetouch-action: noneDisable touch
pan-xtouch-action: pan-xPan horizontally
pan-ytouch-action: pan-yPan vertically
pan-lefttouch-action: pan-leftPan left
pan-righttouch-action: pan-rightPan right
pinch-zoomtouch-action: pinch-zoomPinch to zoom
manipulationtouch-action: manipulationPan and pinch only

Examples

html
<div visual="touch:manipulation">Touch optimized</div>

Preview

Touch Action

visual="touch:manipulation" - Control touch gestures

pan-x
pan-y
manipulation
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg:primary text:white rounded:small">pan-x</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">pan-y</div>
  <div space="p:small" visual="bg:primary text:white rounded:small">manipulation</div>
</div>