new swipe('#touch-div',function(data){
//this will return object data.
if(data.direction === 'left'){
alert("You swipe left");
}
if(data.direction === 'right'){
alert("You swipe right");
}
if(data.direction === 'up'){
alert("You swipe up");
}
if(data.direction === 'down'){
alert("You swipe down");
}
});
-
Notifications
You must be signed in to change notification settings - Fork 0
roweldeguzman/swipe
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published