Open janstieler opened 4 years ago
Hi, thanks for this great Plugin! Now I want to execute a function if swipe phase is end. I tested it with:
end
$('.card').swipe({ swipe:function(event, phase) { if (phase == 'right') { console.log('right'); } if (phase == 'left') { console.log('left'); } if (phase == 'end') { console.log('end'); } } });
But i get only right and left as a console output. How can I use end?
right
left
Cheers
Hi, thanks for this great Plugin! Now I want to execute a function if swipe phase is
end
. I tested it with:But i get only
right
andleft
as a console output. How can I use end?Cheers