How do you make touch gestures?

I want the user to be able to scroll down the page.

Add 2 global variables, OldX and OldY. Then: