Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 604 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 604 Bytes

jQuery swipe event

Plugin lets to use swipe touch events.

Install with bower

bower install jq-swipe-events

Usage

Main swipe event

$(selector).on('swipe', function(e) {
    // your actions
});

Swipe event object

Swipe event object is extended touchmove event. Following properties are added:

  • e.swipeDeltaX: Number, positive for swipeRight negative for swipeLeft

  • e.swipeDeltaY: Number, positive for swipeDown negative for swipeUp

  • e.originalEvent - native event object

TODO

  • add directional swipe events