Skip to content

Commit

Permalink
don't modify topIndex in handleTextChanged if control has not the focus
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-melcher committed Nov 24, 2024
1 parent e6588c2 commit c12914b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6046,7 +6046,7 @@ void handleTextChanged(TextChangedEvent event) {
}
int firstLine = content.getLineAtOffset(lastTextChangeStart);
resetCache(firstLine, 0);
if (!isFixedLineHeight() && topIndex > firstLine) {
if (!isFixedLineHeight() && isFocusControl() && topIndex > firstLine) {
topIndex = firstLine;
if (topIndex < 0) {
// TODO: This logging is in place to determine why topIndex is getting set to negative values.
Expand Down

0 comments on commit c12914b

Please sign in to comment.