1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// Minimum touch contact travel in logical pixels before a tap transitions into pan scrolling.
pub const TOUCH_SLOP_DP: f32 = 12.0;
/// Minimum directional displacement in logical pixels required to recognize an intentional swipe gesture.
pub const SWIPE_MIN_DISTANCE_DP: f32 = 84.0;
/// Minimum primary-to-cross-axis displacement ratio required to classify a drag as an intentional directional swipe.
pub const SWIPE_DIRECTION_RATIO: f32 = 2.0;
/// Maximum perpendicular drift in logical pixels allowed during a directional swipe gesture.
pub const SWIPE_MAX_CROSS_AXIS_DP: f32 = 52.0;
/// Minimum post-slop touch drag travel in logical pixels required before releasing inertial fling momentum.
pub const TOUCH_MIN_FLING_DRAG_DP: f32 = 16.0;
/// Minimum release velocity in logical pixels per second required to launch touch scroll inertia.
pub const TOUCH_MIN_FLING_SPEED_DP_S: f32 = 95.0;
/// Native action argument instructing the host OS to display the system soft keyboard / IME.
pub const IME_ACTION_SHOW: &str = "show";
/// Native action argument instructing the host OS to dismiss the system soft keyboard / IME.
pub const IME_ACTION_HIDE: &str = "hide";
/// Inactive scrollbar thumb drag axis sentinel.
pub const SCROLLBAR_AXIS_NONE: u8 = 0;
/// Active vertical right-edge scrollbar thumb drag axis.
pub const SCROLLBAR_AXIS_VERTICAL: u8 = 1;
/// Active horizontal bottom-edge scrollbar thumb drag axis.
pub const SCROLLBAR_AXIS_HORIZONTAL: u8 = 2;
/// Maximum elapsed seconds between consecutive clicks on the same text node for double/triple-click selection.
pub const TEXT_MULTI_CLICK_MAX_SECS: f32 = 0.45;
/// Maximum pointer drift in logical pixels allowed between consecutive clicks for double/triple-click selection.
pub const TEXT_MULTI_CLICK_MAX_DIST_DP: f32 = 16.0;