I'm having trouble making angular-hammer detect a vertical pan only. Only after panning horizontally is a vertical pan detected.
As mentioned in the Getting Started section of Hammerjs, by default, pan does not respond to vertical events initially. To override this DIRECTION_ALL has to be set - not as an option parameter on the object instantiation, but on a separate call to set(). An example can be seen here: http://codepen.io/jtangelder/pen/ABFnd
I'm having trouble making angular-hammer detect a vertical pan only. Only after panning horizontally is a vertical pan detected.
As mentioned in the Getting Started section of Hammerjs, by default, pan does not respond to vertical events initially. To override this
DIRECTION_ALL
has to be set - not as an option parameter on the object instantiation, but on a separate call toset()
. An example can be seen here: http://codepen.io/jtangelder/pen/ABFndHow would I achieve this with angular-hammer?
I've tried using
hm-custom
like so:But that's not working. See: http://jsfiddle.net/40a1693m/2/