Closed johannesjo closed 9 years ago
I'm noticing the issue as well....none of the events seem to be firing at all.
Installed via bower, added angular-gestures as dependency, linked gestures.min.js and the hammerjs files, also have jquery included.
Tested simple function nextSlide() using ng-click and worked fine, but when put inside hm-swipe-right="nextSlide()" it never fired the function.
Seems like you have to initialize the listeners first:
yourApp.config(function (hammerDefaultOptsProvider)
{
hammerDefaultOptsProvider.set({
recognizers: [
[Hammer.Tap],
[Hammer.Press],
[Hammer.Pan]
]
});
});
It is not really documented unfortunately.
Thanks...I'm going to add to our config and see if that resolves this.
Thanks @johannesjo for the fix and of course @wzr1337 for the module :+1:
Thanks @johannesjo for helping out.
they're just not firing.