Hammer.js for touch events in a browser.

Whenever I need to implement touch events on a web page, I reach for Hammer.js. Hammer.js gives you key gestures like tap, doubletap, pan, swipe, press, pinch, and rotate. You can customize settings like velocity and timing to suit your needs.

It’s super light weight at 3.96k, and has no external dependencies. If you’re using Angular.js for mobile, the Hammer.js Angular directive is a must have. It lets you add events like ng-swipe.

Using it is this easy

var hammertime = new Hammer(myElement, myOptions);
hammertime.on('pan', function(ev) {

View the demo or browse the source on GitHub

Category: Product #: Regular price:$ (Sale ends ) Available from: Condition: Good ! Order now!
Reviewed by on. Rating: