HorizontalDragNode

A captured horizontal control that yields vertical movement to an ancestor DragScrollNode. Inside a scroll viewport, the runtime delays its press until a stationary tap or horizontal drag is recognized. Horizontal dragging then uses ordinary pointer capture, while a vertical drag never activates the control. Outside a scroll viewport, ordinary immediate pointer dispatch is preserved.

Functions

Link copied to clipboard

Confirms that this node acquired one captured gesture on the owning tree thread.

Link copied to clipboard

Cancels one unfinished captured gesture on the owning tree thread.

Link copied to clipboard
abstract fun onPointerEvent(event: PointerEvent, localPosition: IntOffset): InputResult

Handles a pointer event after layout hit testing.

Link copied to clipboard
open fun onPointerGesture(gesture: PointerGesture, localPosition: IntOffset): InputResult

Handles an adapter-recognized navigation gesture under the same hit and clipping rules as pointer input. Ignoring preserves compatibility for tap-only nodes; no press, activation or focus transition is synthesized. Pan deltas use receiver-local logical units, while zoom factors are dimensionless.