mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
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 <https://github.com/emilk/egui/issues/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 <emil.ernerfeldt@gmail.com>