LibGUI: Don't scroll cursor into view while reflows are deferred

We don't have up-to-date visual line rects until after reflow, and we
already do a "scroll cursor into view" when deferral ends anyway.

Fixes #2524.
This commit is contained in:
Andreas Kling 2020-06-07 21:03:29 +02:00
commit b81b2a85c4
Notes: sideshowbarker 2024-07-19 05:46:11 +09:00

View file

@ -1032,6 +1032,7 @@ void TextEditor::scroll_position_into_view(const TextPosition& position)
void TextEditor::scroll_cursor_into_view()
{
if (!m_reflow_deferred)
scroll_position_into_view(m_cursor);
}