Table of Contents

Constructor DragActivation

Namespace
Velvet
Assembly
Velvet.Docs.dll

DragActivation(float, float, float)

Constraint before a press becomes a drag. Distance is panel px of travel before activation; zero (the default, and None) makes the press itself the drag, as dnd-kit's PointerSensor does with no constraint — so a press on a draggable control is a drag and not a click. A DelaySec > 0 switches from distance-based to hold-to-drag activation: activation happens after the hold, aborted if the observed travel exceeds Tolerance first.

public DragActivation(float Distance = 0, float DelaySec = 0, float Tolerance = 5)

Parameters

Distance float
DelaySec float
Tolerance float