Menu: fix panel clicks on menu items

Fixes click detection on menu items for mobile devices.

Noticed the bug two seconds before @nschonni merged #3504 :grinning: