Table of Contents

Class DragActivation

Namespace
Velvet
Assembly
Velvet.Docs.dll

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

Constructors

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.

Fields

Default
None

Properties

DelaySec
Distance
Tolerance