Fix swipe gesture bug

Sometimes a swipe up would count as 2 swipes and cause 2 double jumps.