Merge pull request #45784 from revilo/fix-45770

Fix unnecessary scrolling in TextEdit
This commit is contained in:
Rémi Verschelde 2021-02-07 20:35:03 +01:00 committed by GitHub
commit 59125d689b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2296,7 +2296,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
int prev_col = cursor.column;
int prev_line = cursor.line;
cursor_set_line(row, true, false);
cursor_set_line(row, false, false);
cursor_set_column(col);
if (mb->get_shift() && (cursor.column != prev_col || cursor.line != prev_line)) {