Skip to content

touch-action

Utilities for controlling permitted touch pan and pinch-zoom gestures on an element.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating touch-action
ISS preview for touch-action
use iced::widget::container;
use iss::{tw, TwExt};
let canvas = container(plot).tw(tw!("touch-pan-x touch-pinch-zoom rounded-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
touch-auto / touch-none / touch-manipulation Exclusive touch modes; .touch_manipulation() / .touch_none()
touch-pan-x / touch-pan-left / touch-pan-right Composable horizontal pan flags; .touch_pan_x()
touch-pan-y / touch-pan-up / touch-pan-down Composable vertical pan flags; .touch_pan_y()
touch-pinch-zoom Composable pinch-zoom flag; .touch_pinch_zoom()

pointer-events · user-select · overscroll-behavior