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.
This commit is contained in:
Kawe Mazidjatari 2024-02-25 23:51:04 +01:00
parent 4fa745af85
commit 9e6559a244

View File

@ -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)