mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-25 02:24:24 +00:00
InputTextMultiline: Fixed vertical scrolling tracking glitch.
Fixed Travis-CI banner address.
This commit is contained in:
parent
835b50b773
commit
34cf00566f
3 changed files with 5 additions and 5 deletions
|
|
@ -3993,9 +3993,8 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
|||
scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize);
|
||||
else if (cursor_offset.y - size.y >= scroll_y)
|
||||
scroll_y = cursor_offset.y - size.y;
|
||||
draw_window->DC.CursorPos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag
|
||||
draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag
|
||||
draw_window->Scroll.y = scroll_y;
|
||||
draw_pos.y = draw_window->DC.CursorPos.y;
|
||||
}
|
||||
|
||||
state->CursorFollow = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue