saawsan / simpleswipe

SimpleSwipe is a JS plugin that handle basic swipe events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpleswipe

SimpleSwipe is a JS plugin that handle basic swipe events.

##What simpleswipe does: Listen the "swipe" event and indicate if it is a "right", "longright", "left" or "longleft" movement. Non multi-touch screens are currently not supported and send a "click" event.

##Require:

  • jQuery

##Use:

$('.simpleswipe').simpleswipe({
	longSwipeMin : 250
});

$('.simpleswipe').on('swipeleft', function(){
	$(this).find('p').append(' swipeleft');
});

About

SimpleSwipe is a JS plugin that handle basic swipe events.


Languages

Language:JavaScript 62.9%Language:HTML 37.1%