Improvements to swipe detection, including min_swipe