SubmenuHover#
func SubmenuHover(state SubmenuState, hovered ui.ID, pointer ui.Point, hoveredRect, openTriggerRect, panelRect ui.Rect, now time.Time, intent *HoverIntent, delay time.Duration) (SubmenuState, time.Duration)SubmenuHover advances one submenu's hover intent. state is the open submenu, pointer the current pointer, and triggerRect/panelRect their geometry when it is open. A pointer over another trigger row opens that row's submenu after delay; a pointer in the grace area between the open trigger and its panel (see SubmenuSafe) keeps it open; a pointer outside both closes it at once, as Base UI's default close delay does. It returns the state and how long to wait before asking again (zero when nothing is pending).