Function: dragDelta()
dragDelta(
from,to):number
Defined in: src/ui/drag/index.ts:16
How much a pointer moved between two points as one value: right and up are positive, left and down negative.
Parameters
from
Point
to
Point
Returns
number
Example
dragDelta({ x: 0, y: 0 }, { x: 5, y: -5 }); // 10