I use Hammer this way, it works (it just launches the next / prev buttons):
var slider = document.getElementsByClassName('slider'); Hammer(slider[0]).on("swiperight", function() { prev.click(); });
A according to the Stack thread , on the event that the modal exits (the hammer is still holding on to it: /) I'm trying to rotate it with:
Hammer(slider[0]).off("swipeleft"); Hammer(slider[0]).off("swiperight");
But that will not work. He is still holding on to the modal. Any idea why?
Rav source share