Anyone knows what are the “direction” values of the class Gesture?
While swiping, seems that that string value are equals to 1,2,4,8 and 16…
Could I use that value to detect a swipe from left to right and right to left?
Source: http://ionicframework.com/docs/v2/api/gestures/Gesture/
export declare class Gesture {
....
direction: string;
}
<div (swipe)="tapEvent($event)">....</div>
tapEvent($event:Gesture) {
alert('' + $event.direction);
}