Skip to content

textmode.js / input / touch

touch

Types and interfaces for touch event handling

Interfaces

InterfaceDescription
TouchEventDataTouch event payload passed to input callbacks.
TouchEventMapTouch and gesture events emitted by the touch input manager.
TouchLongPressEventDataLong press event data.
TouchPinchEventDataPinch gesture event data describing the scaling factor between the initial and current distance.
TouchPositionTouch position expressed both in grid and client coordinates.
TouchRotateEventDataRotate gesture event data describing the angle change between the initial and current segment.
TouchSwipeEventDataSwipe event data reported when the finger travels a minimum distance within a time window.
TouchTapEventDataTap (single or double) event data.

Type Aliases

Type AliasDescription
TouchEventHandlerTouch event callback signature.
TouchLongPressHandlerLong-press event callback signature.
TouchPinchHandlerPinch event callback signature.
TouchRotateHandlerRotate-gesture event callback signature.
TouchSwipeHandlerSwipe event callback signature.
TouchTapHandlerTap event callback signature.

Variables

VariableDescription
GESTURE_EVENT_NAMESTouch gesture event names supported by the shared input event API.
TOUCH_EVENT_NAMESTouch lifecycle event names supported by the shared input event API.