Does anyone know how to access EventData (e.g. angle, velocityX,etc.) from hammer.js (1.1.3)?
Hammer extends the event object passed to event handlers with additional information in event.gesture. Here's an example:Hammer(layer._element).on 'swipe', (event) -> if event.gesture.direction is 'up' ... // do something on swipe up
Thanks Tisho! :)
Seems like I've figured it out on my own, however, since I've always used the timestamp EventData to test it (always returns 'undefined' instead of a number as should do according to the reference) I thought it wasn't working. My bad.