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

panmove and panstart only work with swipe #723

Open
ghost opened this issue Nov 22, 2014 · 1 comment
Open

panmove and panstart only work with swipe #723

ghost opened this issue Nov 22, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 22, 2014

I tried writing a simple app with a pan recognizer, but panstart and panmove would not work unless I also added a swipe recognizer and associated it with the pan recognizer. I can't copy the code exactly but it was more or less:

//does not work
var mc = new Hammer.Manager(document.body);
mc.add(new Hammer.Pan());
mc.on('panstart panmove', function() { console.log('working'); });

//works
var mc = new Hammer.Manager(document.body);
mc.add(new Hammer.Pan());
mc.add(new Hammer.Swipe()).recognizeWith(mc.get('pan'));
mc.on('panstart panmove', function() { console.log('working'); });

@runspired
Copy link
Contributor

Also possibly addressed my merging #824

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