wzr1337 / angular-gestures

AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.
MIT License
510 stars 100 forks source link

Add a check to validate the recognizers configuration for the directives... #41

Closed josketres closed 9 years ago

josketres commented 9 years ago

I spent almost one hour trying to find out why the hm-swipe directive wasn't working in my example, until I found that I needed to configure the Hammer.Swipe recognizer because angular-gestures is using the Hammer.Manager constructor (which has no default recognizer).

So, I though it would be nice to have angular-gestures throw if the needed recognizer is not configured.

wzr1337 commented 9 years ago

awesome, thank you very much!