Skip to content

Commit

Permalink
Fix issues with using nested menus on touch screens
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Oct 19, 2023
1 parent 182bdc7 commit 89f5966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/interface/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 89f5966

Please sign in to comment.