It's not that hard to detect simple movement.
On touch start set start variables to touch xy
On touch end set end variables to touch xy
If start xy is higher than end xy, then it's a downward slope, etc.
For something more complex such as multiple swipes in a single touch, try Podes gesture recognition plug.