Skip to content

textmode.js / input / touch

touch

Types and interfaces for touch event handling

Interfaces

InterfaceDescription
TouchEventDataTouch event data.
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 handler function type
TouchLongPressHandlerTouch long press event handler function type
TouchPinchHandlerTouch pinch event handler function type
TouchRotateHandlerTouch rotate event handler function type
TouchSwipeHandlerTouch swipe event handler function type
TouchTapHandlerTouch tap event handler function type