Fixed issue where swipe right could close the menu and vice versa