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 authored and akurtakov committed Dec 9, 2024
1 parent 2ece1af commit 9892ab9
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 9892ab9

Please sign in to comment.