@@ -93,8 +93,8 @@ export class Viewport extends Disposable {
|
||||
].join('\n');
|
||||
}));
|
||||
|
||||
this._register(this._bufferService.onResize(() => this._queueSync()));
|
||||
this._register(this._bufferService.buffers.onBufferActivate(() => this._queueSync()));
|
||||
this._register(this._bufferService.onResize(() => this.queueSync()));
|
||||
this._register(this._bufferService.buffers.onBufferActivate(() => this.queueSync()));
|
||||
this._register(this._bufferService.onScroll(() => this._sync()));
|
||||
|
||||
this._register(this._scrollableElement.onScroll(e => this._handleScroll(e)));
|
||||
@@ -126,7 +126,7 @@ export class Viewport extends Disposable {
|
||||
};
|
||||
}
|
||||
|
||||
private _queueSync(ydisp?: number): void {
|
||||
public queueSync(ydisp?: number): void {
|
||||
// Update state
|
||||
if (ydisp !== undefined) {
|
||||
this._latestYDisp = ydisp;
|
||||
|
||||
Reference in New Issue
Block a user