mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
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:
parent
eb1ae3d3bc
commit
e8012c70d0
1 changed files with 2 additions and 0 deletions
|
|
@ -166,6 +166,8 @@ export component MenuBarImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
context-menu := ContextMenuInternal {
|
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(); }
|
activated(entry) => { root.activated(entry); self.close(); }
|
||||||
sub-menu(entry) => { root.sub-menu(entry); }
|
sub-menu(entry) => { root.sub-menu(entry); }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue