panel/popover: Handle both touch and button events