Iterate coalesced sub-events of a pointermove, yielding a
PointerSample per sub-event with world coords already derived.
Browsers that batch high-frequency samples (Apple Pencil, drawing
tablets) expose them through event.getCoalescedEvents(). Pen / pencil
tools should iterate them for smooth strokes; mouse tools usually only
need the parent event and can ignore this.
Fallback: when getCoalescedEvents is unavailable or returns an empty
list, the parent event itself is yielded once so callers don't drop
samples on older browsers.
Iterate coalesced sub-events of a
pointermove, yielding aPointerSampleper sub-event with world coords already derived.Browsers that batch high-frequency samples (Apple Pencil, drawing tablets) expose them through
event.getCoalescedEvents(). Pen / pencil tools should iterate them for smooth strokes; mouse tools usually only need the parent event and can ignore this.Fallback: when
getCoalescedEventsis unavailable or returns an empty list, the parent event itself is yielded once so callers don't drop samples on older browsers.