mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
GTextEditor: Scroll the cursor into view before updating it.
This commit is contained in:
parent
9591acc212
commit
60c1ab5fbe
Notes:
sideshowbarker
2024-07-19 15:08:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/60c1ab5fbe6
@ -246,8 +246,8 @@ void GTextEditor::set_cursor(int line, int column)
|
||||
update_cursor();
|
||||
m_cursor = GTextPosition(line, column);
|
||||
m_cursor_state = true;
|
||||
update_cursor();
|
||||
scroll_cursor_into_view();
|
||||
update_cursor();
|
||||
if (on_cursor_change)
|
||||
on_cursor_change(*this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user