mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix hybrid menu mouse hover issue
This commit is contained in:
parent
42a6f27d44
commit
db22ff1876
@ -74,7 +74,14 @@ export class Menu {
|
||||
}
|
||||
}
|
||||
hover(node, event, expand) {
|
||||
if (node.classList.contains('focused') && !expand) return;
|
||||
console.trace('HOV', node, event ,expand)
|
||||
if (node.classList.contains('focused') && !expand) {
|
||||
if (node.classList.contains('hybrid_parent')) {
|
||||
node.classList.remove('opened');
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (event) event.stopPropagation()
|
||||
$(open_menu.node).find('li.focused').removeClass('focused')
|
||||
$(open_menu.node).find('li.opened').removeClass('opened')
|
||||
|
Loading…
x
Reference in New Issue
Block a user