Nav: Fixed a bug where mouse positioning requests would be sent while opening submenus with mouse (#323)

This commit is contained in:
ocornut 2016-08-20 23:25:53 +02:00
parent e4c099d67c
commit 4f7c63a7af

View File

@ -2463,7 +2463,7 @@ static void NavUpdate()
IM_ASSERT(g.NavWindow); IM_ASSERT(g.NavWindow);
g.NavId = g.NavInitDefaultResultId; g.NavId = g.NavInitDefaultResultId;
g.NavRefRectRel = g.NavInitDefaultResultRectRel; g.NavRefRectRel = g.NavInitDefaultResultRectRel;
if (!g.NavDisableHighlight) if (g.NavDisableMouseHover)
g.NavMousePosDirty = true; g.NavMousePosDirty = true;
if (g.NavLayer == 0) if (g.NavLayer == 0)
g.NavWindow->NavLastId = g.NavId; g.NavWindow->NavLastId = g.NavId;