Documentation
    Preparing search index...

    Variable DEFAULT_CLICK_MOVE_THRESHOLDConst

    DEFAULT_CLICK_MOVE_THRESHOLD: 0.02

    How far a pointer may travel between press and release and still produce a click, in NDC units.

    0.02 NDC is 1% of the surface's width (NDC spans 2 units edge to edge) — about 8 px on an 800 px-wide canvas, which is the order of magnitude the platforms use for their own click/drag discrimination. It is expressed in NDC rather than pixels so the pointer source needs no notion of device pixel ratio, and it is anisotropic on a non-square surface (1% of the width horizontally, 1% of the height vertically) — deliberately, since that is what "a small fraction of the viewport" means on each axis.

    Override it per input with PointerInputOptions.clickMoveThreshold.