mattbryson / TouchSwipe-Jquery-Plugin

TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.
http://labs.rampinteractive.co.uk/touchSwipe/
Other
4.05k stars 1.68k forks source link

On swipe is phase end not firing #360

Open janstieler opened 4 years ago

janstieler commented 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:

$('.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?

Cheers