Normalized input-event shape consumed by the pure matcher. Built by the
React seam (useGestureDispatcher) from DOM events. Pump-only events
(PointerMoveEvent, PointerUpEvent, PointerCancelEvent)
ride in the same union so the dispatcher's handleInput signature stays
uniform; the matcher itself never matches them.
The affordance? field on PointerDownEvent is widened to unknown
in this package — the kit narrows it back to AffordanceHit at consumption.
This keeps @weasel-js/gestures free of any kit-affordance type.
Normalized input-event shape consumed by the pure matcher. Built by the React seam (
useGestureDispatcher) from DOM events. Pump-only events (PointerMoveEvent, PointerUpEvent, PointerCancelEvent) ride in the same union so the dispatcher'shandleInputsignature stays uniform; the matcher itself never matches them.The
affordance?field on PointerDownEvent is widened tounknownin this package — the kit narrows it back toAffordanceHitat consumption. This keeps@weasel-js/gesturesfree of any kit-affordance type.