fix(gestures): fix swipe-direction detection

Got broken via refactoring
Added a test for this case