|
|
@ -3262,8 +3262,11 @@ static void ImGui::NavUpdate()
|
|
|
|
// Set mouse position given our knowledge of the navigated item position from last frame
|
|
|
|
// Set mouse position given our knowledge of the navigated item position from last frame
|
|
|
|
if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (g.IO.BackendFlags & ImGuiBackendFlags_HasSetMousePos))
|
|
|
|
if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (g.IO.BackendFlags & ImGuiBackendFlags_HasSetMousePos))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
g.IO.MousePos = g.IO.MousePosPrev = NavCalcPreferredRefPos();
|
|
|
|
if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow)
|
|
|
|
g.IO.WantSetMousePos = true;
|
|
|
|
{
|
|
|
|
|
|
|
|
g.IO.MousePos = g.IO.MousePosPrev = NavCalcPreferredRefPos();
|
|
|
|
|
|
|
|
g.IO.WantSetMousePos = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
g.NavMousePosDirty = false;
|
|
|
|
g.NavMousePosDirty = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|