DragStep
Source: dragBehavior.js:47
One pointer move while dragging: display-space delta from the previous event as Scalar2D (x = point1.x - point0.x, y = point1.y - point0.y).
Constructor
new DragStep(
point0: Point2D,
point1: Point2D,
options?: object,
): DragStepParameters
point0(Point2D) — Position at the previous move (or down).point1(Point2D) — Current pointer position (display space).options(object, optional) — Options.options.threshold(Scalar2D, optional) — Per-axis thresholds (see DragBehaviorOptions).
Instance Methods
passesThresholdX(): boolean
Returns
boolean— True whenthreshold.xis<= 0(no minimum on X), or when|delta.x| >= threshold.x.
passesThresholdY(): boolean
Returns
boolean— True whenthreshold.yis<= 0(no minimum on Y), or when|delta.y| >= threshold.y.
passesThreshold(): boolean
Returns
boolean— passesThresholdX||passesThresholdY.
Instance Fields
delta
Returns