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

javascript click not firing immediately with Hammer.Swipe #726

Open
danicomas opened this issue Nov 25, 2014 · 0 comments
Open

javascript click not firing immediately with Hammer.Swipe #726

danicomas opened this issue Nov 25, 2014 · 0 comments

Comments

@danicomas
Copy link

var hammerManager = new Hammer.Manager(document.getElementById("page"));

            var swipeRecognizer = new Hammer.Swipe({
                threshold: 20,
                velocity: 0.01,
                direction: Hammer.DIRECTION_RIGHT,
                time: 3
            });

            hammerManager.add(swipeRecognizer);

            hammerManager.on('swipe', function(ev) {
                if (ev.type == 'swipe') {
                    $("#left-panel").panel( "open");
                    ev.srcEvent.preventDefault();
                    ev.srcEvent.stopPropagation();
                }

            });
<input type="button" value="Populate" onclick="populate()" />

Swipe works good but If I click on the button, don't respond fluent.

Android 4.4.4 Nexus 4

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