class RightSwipeGestureRecognizer
Defined at line 85 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.h
Recognizer for right-oriented swipes.
In the NDC coordinate space, a rightward swipe moves toward +x.
Public Members
static const float kMaxRightSwipeSlopeMagnitude
static const char[] kRightSwipeRecognizerName
Public Methods
void RightSwipeGestureRecognizer (SwipeGestureCallback callback, uint32_t number_of_finger, zx::duration swipe_gesture_timeout)
Defined at line 94 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.h
std::string DebugName ()
Defined at line 104 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.h
Protected Methods
bool SwipeHasValidSlopeAndDirection (float x_displacement, float y_displacement)
Verifies that the absolute value of the slope of the line containing the gesture start point
and the location of the touch event in question is sufficiently small (i.e. the swipe is
"horizontal"), and that x_displacement is positive (i.e. the swipe is "right").
Defined at line 43 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.cc