mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-27 02:40:05 +00:00
Nav: fixed absolute mouse position (with NavEnableSetMousePos config flag) when using Home/End leads to scrolling.
This commit is contained in:
parent
c363b6df2b
commit
19c72cd52a
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue