mirror of
https://github.com/Drezil/imgui.git
synced 2025-01-11 16:26:35 +00:00
SetCursorScreenPos() fixed not adjusting CursorMaxPos as well
This commit is contained in:
parent
b9b3dec7da
commit
fe7274b6c7
@ -5129,6 +5129,7 @@ void ImGui::SetCursorScreenPos(const ImVec2& screen_pos)
|
|||||||
{
|
{
|
||||||
ImGuiWindow* window = GetCurrentWindow();
|
ImGuiWindow* window = GetCurrentWindow();
|
||||||
window->DC.CursorPos = screen_pos;
|
window->DC.CursorPos = screen_pos;
|
||||||
|
window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
float ImGui::GetScrollX()
|
float ImGui::GetScrollX()
|
||||||
|
Loading…
Reference in New Issue
Block a user