Skip to content

ruimonteiro84/Swipe-gesture.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Swipe-gesture.js

handle swipe gestures on touch devices (also supports mouse click)

Usage:
swipe(element,options) - activate swipe on specified element
swipe(options); - activate swipe on document

Options:
minDistance - int - minimum distance between touch start and end positions
onSwipeLeft - function - handler for swipe left
onSwipeRight- function - handler for swipe right
onSwipeUp - function - handler for swipe up
onSwipeDown - function - handler for swipe down

About

Swipe gesture for touch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published