weasel API - v0.8.0
    Preparing search index...

    Function forEachCoalesced

    • 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.

      Parameters

      Returns void