Skip to content

On swipe is phase end not firing #360

@janstieler

Description

@janstieler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions