Skip to content

altflow/jQuery.swipeListener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jQuery.swipeListener.js

jQuery plugin to assign swipe event listener.

Usage

$(element).swipeListener(option);

Example:

$("#target").swipeListener({
	swipeLeft: function() { alert("you just swiped left."); }
});

Options

  • duration : the time from touchstart to touchend must be in this period.
  • minX : the position moved more than this value to deem swipe right or left
  • minY : the position must be moved more than this value to deem swipe up or down
  • swipeUp : callback function that is invoked when swipe up event happens
  • swipeDown : callback function for swipe down
  • swipeLeft : callback function for swipe left
  • swipeRight : callback function for swipe right

About

jQuery plugin to assign swipe event listener.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors