Get new jQuery plugins just once a week

×

jquery finger

April 10, 2014

jQuery touch & gestures, fingers in the nose.

jQuery Finger is a plugin which unifies click and touch events by removing the 300ms delay on touch devices. It also provides a common set of events to handle basic gestures such as flick, drag, press and double tap.
Very small (< 0.5kb gzipped), it is focused on performance and KISS, is well tested and also supports jQuery delegated events. Example Code for swipe menu :- $(‘#menu’).on(‘flick’, function(e) {
if (‘horizontal’ == e.orientation) {
if (1 == e.direction) {
$(this).addClass(‘is-opened’);
}
else {
$(this).removeClass(‘is-opened’);
}
}
});

Created by Nicolas Gryman

Download

Example

jquery finger plugin

touch events

jquery finger

Related posts:

QR code
Swipe-js
NumBox
jquery finger plugin

http://jquer.in/wp-content/uploads/2014/04/jquery-finger.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever