class UpSwipeGestureRecognizer

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

Recognizer for upward-oriented swipes.

In NDC, an upward swipe moves toward -y.

Public Members

static const float kMinUpSwipeSlopeMagnitude
static const char[] kUpSwipeRecognizerName

Public Methods

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

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

std::string DebugName ()

Defined at line 37 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 positive (i.e. the swipe is "up").

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