Plugin lets to use swipe touch events.
bower install jq-swipe-events
$(selector).on('swipe', function(e) {
// your actions
});
Swipe event object is extended touchmove
event. Following properties are added:
-
e.swipeDeltaX: Number, positive for
swipeRight
negative forswipeLeft
-
e.swipeDeltaY: Number, positive for
swipeDown
negative forswipeUp
-
e.originalEvent - native event object
- add directional swipe events