class DownSwipeGestureRecognizer

Defined at line 52 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/directional_swipe_recognizers.h

Recognizer for downward-oriented swipes.

In the NDC coordinate space, a downward swipe moves toward +y.

Public Members

static const float kMinDownSwipeSlopeMagnitude
static const char[] kDownSwipeRecognizerName

Public Methods

void DownSwipeGestureRecognizer (SwipeGestureCallback callback, uint32_t number_of_finger, zx::duration swipe_gesture_timeout)

Defined at line 60 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/directional_swipe_recognizers.h

std::string DebugName ()

Defined at line 70 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/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 pointer event in question is sufficiently large (i.e. the swipe is

"vertical"), and that y_displacement is negative (i.e. the swipe is "down").

Defined at line 27 of file ../../src/ui/a11y/lib/gesture_manager/recognizers/directional_swipe_recognizers.cc