Better swipe gesture recognition