Nav: fixed absolute mouse position (with NavEnableSetMousePos config flag) when using Home/End leads to scrolling.

This commit is contained in:
ocornut
2021-10-27 12:28:01 +02:00
parent c363b6df2b
commit 19c72cd52a
3 changed files with 4 additions and 2 deletions

View File

@ -9619,7 +9619,7 @@ void ImGui::NavMoveRequestApplyResult()
{
// FIXME: Should remove this
float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f;
delta_scroll.y = result->Window->Scroll.y - scroll_target;
delta_scroll.y = scroll_target - result->Window->Scroll.y;
SetScrollY(result->Window, scroll_target);
}
else