Contents

allowsPointerDragBeforeLiftDelay

A Boolean value that controls whether pointer-initiated drags begin before the lift delay elapses.

Declaration

var allowsPointerDragBeforeLiftDelay: Bool { get set }

Discussion

When this property is true, a pointer-initiated drag begins as soon as the pointer crosses the minimum movement threshold, regardless of whether the lift delay has elapsed.

When this property is false, a pointer-initiated drag waits for the lift delay to elapse before checking whether the pointer has crossed the minimum movement threshold. This matches touch-based drag initiation behavior.

Set this property to false in gesture-rich views (such as a canvas) where people also interact frequently with secondary gestures in the same view. This ensures consistent gesture disambiguation regardless of input device.

The default value is true in iOS and false in macOS.

For touch-based gesture timing, use liftBehavior.

See Also

Configuring lift behavior