Determine the direction of a swipe using the Corona SDK