From ea60151301879410a1eb9400fb7d6622a530deec Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 25 Feb 2024 23:51:04 +0100 Subject: [PATCH] ImGui: set X scroll in console window as well Previously only the Y would reset, making you not see the end if you were scrolled too far in the X. --- src/thirdparty/imgui/misc/imgui_logger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/thirdparty/imgui/misc/imgui_logger.cpp b/src/thirdparty/imgui/misc/imgui_logger.cpp index dd4393d6..cac47b67 100644 --- a/src/thirdparty/imgui/misc/imgui_logger.cpp +++ b/src/thirdparty/imgui/misc/imgui_logger.cpp @@ -936,9 +936,12 @@ void CTextLogger::Render() if (m_bScrollToBottom || (m_bAutoScroll && m_bScrolledToBottom && !m_bScrollToCursor)) { + ImGui::SetScrollHereX(0.0f); ImGui::SetScrollHereY(1.0f); + m_bScrollToBottom = false; } + m_bScrollToCursor = false; if (m_bHandleUserInputs)