Skip to content

Conversation

@neophob
Copy link

@neophob neophob commented Apr 10, 2015

Hi Ryan

Thanks for your library. I needed to add a custom parameter to each directive call. Example:

<div hm-payload="CUSTOM PARAMETER" hm-press="onHammer" hm-pressup="onHammer" hm-recognizer-options='{"preventGhosts":true,"time":500}'></div>

then the scope function looks like this:

$scope.onHammer = function(event, payload) {
    console.log('I got an event: ', event.type);
    console.log('payload: '+payload);
}

@RyanMullins
Copy link
Owner

I recenty merged #55. Can you take a look at this stuff again and see if those changes solve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants