Table of Contents

Class DragActivation

Namespace
Velvet
Assembly
Velvet.Docs.dll

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 sealed record DragActivation
Inheritance
object
DragActivation

Constructors

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.

Fields

Default
None

Properties

DelaySec
Distance
Tolerance