@mocanvas/editor · type

TLClickState

type TLClickState = "idle" | "pendingDouble" | "doubleClick" | "overflow"

Where a click gesture currently is.

idle — nothing in flight. pendingDouble — one full press/release has happened and a second press soon enough, and close enough, would make it a double click. doubleClick — the double click has been reported and the gesture is finishing. overflow — more presses arrived inside the same window; they are deliberately *not* reported as triple or quadruple clicks (see ClickEventName), they simply stop counting until the window lapses.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.