mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-17 01:04:19 +00:00
InputText(): fixed mouse-dragging not scroll tracking the cursor when text doesn't fit (fix #339)
This commit is contained in:
parent
08bfe9bc7c
commit
0e86ed9361
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue