onPointerEvent

abstract fun onPointerEvent(event: PointerEvent, localPosition: IntOffset): InputResult(source)

Handles a pointer event after layout hit testing.

The event position is tested against half-open accumulated bounds. A child may receive an event outside its parent's bounds when the child itself is placed there. The runtime does not add implicit parent clipping.

Return

whether dispatch should stop.

Parameters

event

the tree-coordinate event.

localPosition

the event position relative to this node's top-left corner.