Touch Gestures
Advanced multi-touch gesture recognition with pan, pinch, rotate, tap, swipe support and momentum physics
Pro Features
Unlock advanced capabilities with the Pro version
Multi-Touch Support
Pan, pinch, rotate, tap, swipe with up to 10 simultaneous touch points
Desktop Fallback
Full mouse drag support for desktop browsers with gesture simulation
Pinch to Zoom
Smooth pinch gestures with configurable scale limits and momentum
Rotation Gestures
Two-finger rotation with optional angle snapping
Haptic Feedback
Optional vibration feedback with customizable intensity
Visual Indicators
Touch point indicators and gesture type display for debugging
Installation
Install via CLI
npx moonui-cli@latest add touch-gesturesUsage
Touch & Gesture Me!
Pan • Pinch • Rotate
Examples
Pinch to Zoom Image
Interactive image zoom with scale limits and smooth transitions
Pinch to Zoom
Use two fingers to zoom in/out
Scale: 0.5x - 3x
Rotate Gesture with Snap
Rotation gestures with angle snapping
Free Rotation
15° Snap
45° Snap
Tap, Double Tap & Long Press
Comprehensive tap gesture recognition
Single Tap
Quick tap to trigger
Double Tap
Tap twice within 300ms
Long Press
Hold for 500ms
Advanced Features: Preview, Indicators & Momentum
Enable visual feedback, touch indicators, and momentum scrolling
Basic
Standard gestures
With Preview
Ghost preview while dragging
With Indicators
Visual touch points
Full Features
Preview + Indicators + Momentum