From e2f314d613b416a5126fb1385b2af67f9b74cf14 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 11 Sep 2025 15:05:53 +0200 Subject: [PATCH] InputText: fixed misassignment to unused Scroll.y variable when using ImGuiInputTextFlags_NoHorizontalScroll. Amend d474ed7f7 (#7913, #383) --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 55410b1f3..ebdee29b1 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -5439,7 +5439,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ } else { - state->Scroll.y = 0.0f; + state->Scroll.x = 0.0f; } // Vertical scroll