PointerInputNode

A node that receives pointer events in its local coordinate space.

The runtime visits the deepest and latest-painted hit node first. Returning InputResult.Ignored allows bubbling to continue, while InputResult.Consumed stops dispatch.

Inheritors

Functions

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.