DWVv0.37.0

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, ): DragStep

Parameters

  • point0 (Point2D) — Position at the previous move (or down).
  • point1 (Point2D) — Current pointer position (display space).
  • options (object, optional) — Options.

Instance Methods

passesThresholdX(): boolean

Returns

  • boolean — True when threshold.x is <= 0 (no minimum on X), or when |delta.x| >= threshold.x.

passesThresholdY(): boolean

Returns

  • boolean — True when threshold.y is <= 0 (no minimum on Y), or when |delta.y| >= threshold.y.

passesThreshold(): boolean

Returns

Instance Fields

delta

Returns

  • Scalar2D — Display delta (point1 - point0); mutable — treat as read-only from outside DragStep.