textmode.js / input / touch
touch
Types and interfaces for touch event handling
Interfaces
| Interface | Description |
|---|---|
| TouchEventData | Touch event payload passed to input callbacks. |
| TouchEventMap | Touch and gesture events emitted by the touch input manager. |
| TouchLongPressEventData | Long press event data. |
| TouchPinchEventData | Pinch gesture event data describing the scaling factor between the initial and current distance. |
| TouchPosition | Touch position expressed both in grid and client coordinates. |
| TouchRotateEventData | Rotate gesture event data describing the angle change between the initial and current segment. |
| TouchSwipeEventData | Swipe event data reported when the finger travels a minimum distance within a time window. |
| TouchTapEventData | Tap (single or double) event data. |
Type Aliases
| Type Alias | Description |
|---|---|
| TouchEventHandler | Touch event callback signature. |
| TouchLongPressHandler | Long-press event callback signature. |
| TouchPinchHandler | Pinch event callback signature. |
| TouchRotateHandler | Rotate-gesture event callback signature. |
| TouchSwipeHandler | Swipe event callback signature. |
| TouchTapHandler | Tap event callback signature. |
Variables
| Variable | Description |
|---|---|
| GESTURE_EVENT_NAMES | Touch gesture event names supported by the shared input event API. |
| TOUCH_EVENT_NAMES | Touch lifecycle event names supported by the shared input event API. |