Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On swipe is phase end not firing #360

Open
janstieler opened this issue Dec 22, 2019 · 0 comments
Open

On swipe is phase end not firing #360

janstieler opened this issue Dec 22, 2019 · 0 comments

Comments

@janstieler
Copy link

janstieler commented Dec 22, 2019

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

@janstieler janstieler changed the title On swipe is phase endnot firing On swipe is phase end not firing Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant