mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Try to get textarea's cursor to line up with our cursor horizontally (improves #136097)
This commit is contained in:
parent
0933acd4cc
commit
9fc5b78314
|
@ -581,7 +581,7 @@ export class TextAreaHandler extends ViewPart {
|
|||
);
|
||||
// In case the textarea contains a word, we're going to try to align the textarea's cursor
|
||||
// with our cursor by scrolling the textarea as much as possible
|
||||
this.textArea.domNode.scrollLeft = 1000000;
|
||||
this.textArea.domNode.scrollLeft = this._primaryCursorVisibleRange.left;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue