Open TheInvoker opened 7 years ago
The documentation states somewhere, that Vertical Panning is not enabled per default and also gave an example to enable it. Have to say that it is hard to find and took me a whole working day...
mc.get('pan').set({direction: Hammer.DIRECTION_ALL });
@angabriel, thank you for pointing out the confusion.
I tried to better explain two different defaults in https://squadette.github.io/hammer.js/recognizer-swipe/ and https://squadette.github.io/hammer.js/recognizer-pan/
In my code
I noticed a couple of issues. First is I can't pan vertically. I can pan horizontally though. Vertical panning only works if I first pan horizontally which is weird. In my page there is no vertical scroll bar anyways, so is there a way I can override something and make vertical panning work?
The second issue is pinch to zoom feature. It doesn't seem to work at the same time as when I enable panning. Google maps works perfectly with pinch to zoom and panning. So I know it can be done. Does anyone know what's wrong?
Thanks