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

Two finger swipe #1242

Closed
arjunspanicker opened this issue Dec 10, 2019 · 1 comment
Closed

Two finger swipe #1242

arjunspanicker opened this issue Dec 10, 2019 · 1 comment

Comments

@arjunspanicker
Copy link

Can i get vertical swipe to work with two fingers. It is working fine with one finger but i need two finger swipe as single touch is used for another purpose. I tried putting swipe_max_touches to 0 to get access to unlimited touches but it does'nt seem to work

@arjunspanicker
Copy link
Author

Actually it can be done by setting poiner number to 2.
var myElement = document.getElementById('container1'); var mc = new Hammer(myElement); mc.get('swipe').set({ direction: Hammer.DIRECTION_VERTICAL, pointers : 2}); mc.on("swipe", function(ev) { console.log('swiped', ev); });

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