Skip to main content

Module pointer

Module pointer 

Source
Expand description

Gesture handlers driven by pointer events.

TapGestures and DragGestures are state machines over PointerEvents, attached with Modifier::pointer_input. Their state lives in a modifier node, so a drag keeps accumulating while the view recomposes.

Structs§

DragEnd
DragGestures
Drag detection with a touch slop before the gesture starts.
DragStart
DragUpdate
TapEvent
A press that ended without moving past the touch slop.
TapGestures
Tap, double tap, and long press.

Traits§

PointerInputHandler
Receives the pointer events of one hit region.