simplify swipe gesture logic, should not depend on direction anyway