onPointerEvent

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

The callback runs on the owning tree thread in deepest/latest-painted-first dispatch order. Returning InputResult.Consumed stops ordinary event propagation; returning InputResult.Ignored allows earlier candidates to run.

Return

this chain with one appended active pointer-input node.

Parameters

callback

callback receiving the tree event and modifier-local position.

Throws

when callback fails during dispatch; the owning tree preserves the exact failure as primary while poisoning and cleaning retained ownership.