onMove

Handles every pointer move that hits this modifier's laid-out bounds.

Use onHover for distinct enter and exit transitions, including exit during session detachment.

Return

this chain with one appended active move handler.

Parameters

callback

callback receiving the typed event and modifier-local position and deciding propagation.

Throws

when callback fails during dispatch.


fun Modifier.onMove(action: () -> Unit): Modifier(source)

Runs action for every pointer move that hits this modifier without consuming the event.

Return

this chain with one appended non-consuming move handler.

Parameters

action

synchronous action invoked on the owning tree thread.

Throws

when action fails during dispatch.