RyanMullins / angular-hammer

Hammer.js v2 support for AngularJS
http://ryanmullins.github.io/angular-hammer/
MIT License
188 stars 55 forks source link

Add an angular provider for global preset handling, and minor changes for more idiomatic Angular #53

Closed jsdw closed 9 years ago

jsdw commented 9 years ago

Various tweaks including:

  1. add a provider so that we can globally configure default event dsettings in angular at config time (useful if, say, we don't agree with the default tap duration for instance and want it changed across the board)
  2. fromJson -> scope.$eval to allow for more idiomatic AngularJS code
  3. update builds and docs to latest

I hope you find some of this stuff useful, or at the very least inspires some ideas in this area :)

James

jsdw commented 9 years ago

Closed as I had a better look around and it needs more work to plug nicely into the existing code. I'll have another pass.