Need help with jquery.event.swipe?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

stephband
448 Stars 191 Forks 50 Commits 12 Opened issues

Description

jQuery custom events swipeleft, swiperight, swipeup and swipedown

Services available

!
?

Need anything else?

Contributors list

# 84,752
HTML
CSS
39 commits
# 139,594
tree-st...
Rails
Perl
Postgre...
1 commit
# 44,029
React
JavaScr...
HTML
keyboar...
1 commit

jquery.event.swipe

Dependencies

jQuery.event.move: stephband.info/jquery.event.move

One of swipeleft, swiperight, swipeup or swipedown is triggered on moveend, when the move has covered at least a threshold proportion of the dimension of the target node.

Swipe events are a thin wrapper around the moveend event, a convenience to reveal when a finger has made a swipe gesture. As such they don't bubble — they are retriggered on each passing of a moveend event. The underlying move events do bubble and delegate. Use them if you need more flexibility.

CommonJS

If you're using Browserify, or any other CommonJS-compatible module system, you can require this script by passing it your jQuery reference. For example,


require('./path/to/jquery.event.move.js')(jQuery);

Demo and docs

stephband.info/jquery.event.swipe

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.