pub const DEFAULT_DRAG_THRESHOLD: u16 = 1;Expand description
Default Interaction::with_drag_threshold.
The pointer must move strictly farther than this many cells from its press-down position
(see past_drag_threshold’s > comparison) before a Sense::DRAG widget reports
Response::dragging instead of a click-in-progress, so at the default of 1 the pointer
has to reach a cell at least two away from the origin.
Terminal pointer positions are already cell-quantized, so there is no sub-cell jitter to
absorb the way a pixel-based UI needs to: 1 exists only to let a click that wanders to an
immediately adjacent cell still count as a click, while a move to the next cell out is a
deliberate drag. Lower (0) turns any single-cell move into a drag and makes shaky clicks
hard to land; higher delays drag recognition by that many extra cells. Picked by feel, not
measured.