PointerGesture

sealed interface PointerGesture(source)

Adapter-recognized navigation gesture, dispatched without synthesizing a pointer press or acquiring focus. The adapter owns recognition and physical pointer capture; each delivery hit-tests committed geometry. A pan keeps its initial hit position while carrying incremental motion, so scrolling does not retarget to a moved row.

Inheritors

Types

Link copied to clipboard
data class Pan(val position: IntOffset, val deltaX: Double, val deltaY: Double) : PointerGesture

Incremental motion in logical pixels; positive deltas move displayed content toward increasing coordinates. Core inverse-scales these deltas for each receiving node.

Link copied to clipboard
data class Zoom(val position: IntOffset, val factor: Double) : PointerGesture

Positive finite magnification relative to the previous delivery, anchored at position.

Properties

Link copied to clipboard
abstract val position: IntOffset

Tree-coordinate hit position, also used as the local zoom anchor.