1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/// Classified cross-platform pointer/touch/stylus gesture. #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub enum GestureKind { /// Clean tap (bounded net displacement and bounded total path length). Tap, /// Horizontal leftward swipe. SwipeLeft, /// Horizontal rightward swipe. SwipeRight, /// Vertical upward swipe. SwipeUp, /// Vertical downward swipe. SwipeDown, /// Gesture moved beyond tap bounds without meeting directional swipe criteria. Drag, }