Slides Only: http://www.slideshare.net/morrissinge…
via Getting Started – Hammer.js.
Hammer is a open-source library that can recognize gestures made by touch, mouse and pointerEvents. It doesn’t have any dependencies, and it’s small, only 3.96 kB minified + gzipped!
Five Things You Need to Know About Hammer.js 2.0
The Gilt team uses Hammer.js in many of our carousels for tablets, but otherwise sticks to native touchstart and touchend events. In creating a personal project that made extensive use of Hammer.js 1.x, I found it to be an extremely helpful library for identifying complex touch events like pinch and swipe. I also found that it lacked a full set of API features, so I wrote some simple helpers and a wrapper to make Hammer easier to use for myself. The look and feel of Hammer 2.0’s API is completely different from that of 1.x, and includes many of the features that I believed Hammer.js lacked.
These are the top five things I think everyone should know about Hammer 2.0 and how it’s different from Hammer 1.x: