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