mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix issues with using nested menus on touch screens
This commit is contained in:
parent
182bdc7171
commit
89f5966a04
@ -62,6 +62,7 @@ class Menu {
|
||||
this.onClose = this.options.onClose;
|
||||
}
|
||||
hover(node, event, expand) {
|
||||
if (node.classList.contains('focused')) return;
|
||||
if (event) event.stopPropagation()
|
||||
$(open_menu.node).find('li.focused').removeClass('focused')
|
||||
$(open_menu.node).find('li.opened').removeClass('opened')
|
||||
|
Loading…
Reference in New Issue
Block a user