I have a swipe listener with <tag hm-swipe="$ctrl.swipe" hm-recognizer-options='[{"type": "swipe", "directions": "DIRECTION_ALL"}]'> and when it fires I get a parameter object with param.direction = 1 (DIRECTION_NONE).
I've read through the hammer.js source and the only reason of this happening is when deltaX === deltaY. On my object however I have param.deltaX = 229 and param.deltaY = -59.
It is hard to create a MCVE for this but for now I can at least a simplified version of the event params (from that alone it doesn't seem to do what the source code says)
I have a swipe listener with
<tag hm-swipe="$ctrl.swipe" hm-recognizer-options='[{"type": "swipe", "directions": "DIRECTION_ALL"}]'>
and when it fires I get a parameter object withparam.direction = 1 (DIRECTION_NONE)
.I've read through the hammer.js source and the only reason of this happening is when
deltaX === deltaY
. On my object however I haveparam.deltaX = 229
andparam.deltaY = -59
.It is hard to create a MCVE for this but for now I can at least a simplified version of the event params (from that alone it doesn't seem to do what the source code says)