Constructor DragActivation
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
DragActivation(float, float, float)
Constraint before a press becomes a drag, so clicks keep working on draggable elements. Distance is panel px of travel before activation. 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. The default is Distance = 4, not 0, because a zero threshold would race UI Toolkit's own Clickable capture-at-down and kill clicks on draggable buttons; None restores unconstrained (zero-threshold) activation.
public DragActivation(float Distance = 4, float DelaySec = 0, float Tolerance = 5)
Parameters
DistancefloatDelaySecfloatTolerancefloat