Fix MenuBar on android

The ContextMenuArea on android intercepts clicks to trigger on long clicks
and this prevent the MenuBar's TouchArea to work properly

Fixes #8353
This commit is contained in:
Olivier Goffart 2025-05-09 08:58:12 +02:00 committed by GitHub
parent eb1ae3d3bc
commit e8012c70d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,6 +166,8 @@ export component MenuBarImpl {
}
context-menu := ContextMenuInternal {
// Only manual calls to `show` should open the menu, and we shouldn't react to clicks.
enabled: false;
activated(entry) => { root.activated(entry); self.close(); }
sub-menu(entry) => { root.sub-menu(entry); }
}