Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed logic for submenus closing (#3055)
This tiny change removes the trigger for a submenu to close if the mouse is no longer hovering over it or one of its children. Now, the menu stays open until a different menu item is selected. This aims to address <#2853>. I suspected that a new trigger would need to be implemented so that multiple menu items don't remain open simultaneously, but after some testing, this does not appear to occur. This change leaves `MenuState::hovering_current_submenu` and `MenuState::close_submenu` as dead code in case they might be useful later. --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
- Loading branch information