On any touch or hold you store the touch x,y, then when they release or on any touch end as its called you test if the touch x is now less or more than the original touch x. I assume if they're swiping left then the x at release will be less than the original touch.