Fixed issue where disabling bouncing would make the menu float into the screen instead of off the screen when closing it