From 0e86ed9361b4573f5aa644cae5ecea7013276018 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 19 Sep 2015 13:45:51 +0200 Subject: [PATCH] InputText(): fixed mouse-dragging not scroll tracking the cursor when text doesn't fit (fix #339) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index a76ab14d..5de2a2e8 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7177,6 +7177,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2 { stb_textedit_drag(&edit_state, &edit_state.StbState, mouse_x, mouse_y); edit_state.CursorAnimReset(); + edit_state.CursorFollow = true; } if (edit_state.SelectedAllMouseLock && !io.MouseDown[0]) edit_state.SelectedAllMouseLock = false;