Correct menu swipe to properly open and close the menu