You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'); });
The text was updated successfully, but these errors were encountered:
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'); });
The text was updated successfully, but these errors were encountered: