Skip to main content

GESTURE_SWIPE_DEADZONE

Constant GESTURE_SWIPE_DEADZONE 

Source
pub const GESTURE_SWIPE_DEADZONE: i32 = 40;
Expand description

Maximum cross-axis travel allowed at the threshold, so only a reasonably straight swipe commits. Grows with the dominant axis (max(deadzone, 35%)).