RyanMullins / angular-hammer

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

Passing arguments to function besides event arguments #60

Open Jones-S opened 8 years ago

Jones-S commented 8 years ago

Hi there

I want to call a function on a hammer pan and I want to pass a custom value with it.

`

I thought I could use something like this: $scope.startPan = function (event, string) { //... handler }``

But unfortunately this does not work.

Is there a possibility to do something like this?

Any hints appreciated. thanks