1681-engine / index / dragSlop
Function: dragSlop() ​
ts
function dragSlop(
ms,
early?,
tapSlop?,
earlySlop?,
pressMs?
): number;Defined in: src/input/AimGesture.ts:47
How far the thumb must wander, ms into a press, before it drags. early false keeps the plain slop throughout (an attack button with nothing locked: there a slide is as good as a drag).
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
ms | number | undefined |
early | boolean | true |
tapSlop | number | AIM_TAP_SLOP |
earlySlop | number | AIM_EARLY_SLOP |
pressMs | number | AIM_PRESS_MS |
Returns ​
number