Skip to content

Commit

Permalink
Merge pull request #1982 from Tyriar/1981_prevent_scroll_on_focus
Browse files Browse the repository at this point in the history
Prevent scroll on focus
  • Loading branch information
Tyriar authored Mar 30, 2019
2 parents 1451bcb + 2be0a58 commit 2317a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
*/
public focus(): void {
if (this.textarea) {
this.textarea.focus();
this.textarea.focus({ preventScroll: true });
}
}

Expand Down

0 comments on commit 2317a31

Please sign in to comment.