class LeftSwipeGestureRecognizer
Defined at line 119 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.h
Recognizer for left-oriented swipes.
In the NDC coordinate space, a leftward swipe moves toward -x.
Public Members
static const float kMaxLeftSwipeSlopeMagnitude
static const char[] kLeftSwipeRecognizerName
Public Methods
void LeftSwipeGestureRecognizer (SwipeGestureCallback callback, uint32_t number_of_finger, zx::duration swipe_gesture_timeout)
Defined at line 128 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.h
std::string DebugName ()
Defined at line 138 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 left (i.e. the swipe is "left").
Defined at line 55 of file ../../src/ui/a11y/lib/gesture_manager/recognizers_v2/directional_swipe_recognizers.cc