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

drag_max_touches equivalent #617

Open
bklever opened this issue Jul 25, 2014 · 4 comments
Open

drag_max_touches equivalent #617

bklever opened this issue Jul 25, 2014 · 4 comments
Labels

Comments

@bklever
Copy link

bklever commented Jul 25, 2014

Previous version of hammer I was able to increase drag max touches to allow for multi-finger drag (we are using large multi-touch displays). v2 pan appears to block pan events once more than one finger added. A similar problem arises with 'press' event not dispatching if one touch already down. Is there a way around this in v2 I'm missing?

@jtangelder
Copy link
Member

You have the option pointers on a recognizer, this allows you to do that!

@bklever
Copy link
Author

bklever commented Jul 25, 2014

Aren't pointers the amount of touches/pointers required to activate the gesture event? Atm I would have to set up 1-x different custom pan events to achieve multitouch panning. I tried setting pointers to zero in hopes to allow any num of simultaneous touch but this just blocks any event registering

@jtangelder jtangelder reopened this Jul 26, 2014
@jtangelder
Copy link
Member

Zero should work indeed... i'll investigate it!

@bklever
Copy link
Author

bklever commented Jul 27, 2014

Cool, looking at the visual.html example it seems like pan should work with pointers zero, but press definitely does not:

mc.add(new Hammer.Press({ event:'touchstart', threshold: 5, time:0, pointers: 0 }));

Looking at the source it seems like press is the only event to check for valid pointers, which is where it's failing I guess?

@arschmitz arschmitz added the bug label Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants