Added a switch to emit touch events that can be used to hide the menu.