allowing closing the menu by pan, but not opening