Function: swipeOf()
swipeOf(
from,to):"tap2"|"tap3"|"swipeLeft3"|"swipeRight3"|"swipeUp3"|"swipeDown3"|"swipeOut3"|"swipeIn3"|undefined
Defined in: src/lib/classes/GestureTracker/index.ts:21
The swipe three fingers made from where they were to where they are: in or out if their spread changed more than
they moved together, otherwise left, right, up or down (whichever way they moved most). Undefined if they moved less
than SWIPE_MIN_PX.
Parameters
from
readonly Point[]
to
readonly Point[]
Returns
"tap2" | "tap3" | "swipeLeft3" | "swipeRight3" | "swipeUp3" | "swipeDown3" | "swipeOut3" | "swipeIn3" | undefined
Example
swipeOf([{ x: 0, y: 0 }, { x: 10, y: 0 }, { x: 20, y: 0 }], [{ x: 50, y: 0 }, { x: 60, y: 0 }, { x: 70, y: 0 }]); // "swipeRight3"