CockpitInteractionCaptureDefaults class final

Classification and settle thresholds for CockpitInteractionCapture.

All values are injectable for tests. With the defaults, any displacement at or above tapSlopPx scrolls (scrollMinPx equals the slop), and a stationary press held longPressMs or longer is a long press.

Constructors

CockpitInteractionCaptureDefaults({double tapSlopPx = 8.0, int longPressMs = 500, double scrollMinPx = 8.0, int settleQuietWindowMs = 300, int settleTimeoutMs = 5000})
Creates capture thresholds.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
longPressMs → int
Minimum press duration (ms) for a stationary gesture to classify as a long press.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollMinPx → double
Minimum pointer displacement (logical px) that classifies the gesture as a scroll.
final
settleQuietWindowMs → int
Scheduler quiet duration (ms) required before an action step is marked settled.
final
settleTimeoutMs → int
Upper bound (ms) on the settle watch of one action step.
final
tapSlopPx → double
Maximum pointer displacement (logical px) that still classifies as a tap or long-press.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override