Move a bunch of scroll logic into CoreTerminal

This change will now reset userScrolling on RIS
This commit is contained in:
Daniel Imms
2020-04-26 09:54:44 -07:00
parent 46e7fc61cc
commit 21bcef5008
5 changed files with 80 additions and 75 deletions
+3
View File
@@ -17,6 +17,8 @@ export class BufferService implements IBufferService {
public cols: number;
public rows: number;
public buffers: IBufferSet;
/** Whether the user is scrolling (locks the scroll position) */
public isUserScrolling: boolean = false;
private _onResize = new EventEmitter<{ cols: number, rows: number }>();
public get onResize(): IEvent<{ cols: number, rows: number }> { return this._onResize.event; }
@@ -41,5 +43,6 @@ export class BufferService implements IBufferService {
public reset(): void {
this.buffers = new BufferSet(this._optionsService, this);
this.isUserScrolling = false;
}
}
+1
View File
@@ -16,6 +16,7 @@ export interface IBufferService {
readonly rows: number;
readonly buffer: IBuffer;
readonly buffers: IBufferSet;
isUserScrolling: boolean;
onResize: IEvent<{ cols: number, rows: number }>;