Rectify direction on mobile swipe