Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt

Use this file to discover all available pages before exploring further.

tsdraw handles multi-touch input out of the box, including pinch-to-zoom, two-finger pan, and tap gestures.

Gestures

GestureAction
Single fingerUse current tool
Two fingersPan
PinchZoom
Two-finger tapUndo
Three-finger tapRedo

Customizing

<Tsdraw touchOptions={{ tapUndoRedo: false }} />

Stylus (Pen)

tsdraw detects pressure-sensitive pens and records pressure in the z coordinate.
<Tsdraw penOptions={{ pressureSensitivity: 0.5 }} />

Trackpads

Supported natively:
  • Two-finger scroll to pan
  • Pinch to zoom