new $verticalSwipe()
The $verticalSwipe
service is a service that abstracts the messier details of hold-and-drag swipe
behavior, to make implementing swipe-related directives more convenient.
Requires the
module to be installed.ngTouch
$verticalSwipe
is used by the ngeoSwipeUp
and ngeoSwipeDown
directives.
Usage
The $verticalSwipe
service is an object with a single method: bind
. bind
takes an element
which is to be watched for swipes, and an object with four handler functions. See the
documentation for bind
below.