Skip to content

Commit

Permalink
Fix blinking caret (#15308)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh authored Jul 19, 2024
1 parent 9036138 commit 32120af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/gui/src/2D/controls/inputTextArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ export class InputTextArea extends InputText {
this._scrollTop += this._clipTextTop - cursorTop;
cursorTop = this._clipTextTop;
this._markAsDirty();
} else if (cursorTop + this._fontOffset.height > this._clipTextTop + this._availableHeight) {
} else if (cursorTop + this._fontOffset.height > this._clipTextTop + this._availableHeight && this._availableHeight > this._fontOffset.height) {
this._scrollTop += this._clipTextTop + this._availableHeight - cursorTop - this._fontOffset.height;
cursorTop = this._clipTextTop + this._availableHeight - this._fontOffset.height;
this._markAsDirty();
Expand Down

0 comments on commit 32120af

Please sign in to comment.