Skip to content

Commit a4f8b07

Browse files
authored
Merge pull request #4226 from Tyriar/dropped_frames
Fix dropped frame issue
2 parents d5710af + 8d4d5bd commit a4f8b07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/browser/decorations/BufferDecorationRenderer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class BufferDecorationRenderer extends Disposable {
2828
this._container.classList.add('xterm-decoration-container');
2929
this._screenElement.appendChild(this._container);
3030

31-
this.register(this._renderService.onRenderedViewportChange(() => this._queueRefresh()));
31+
this.register(this._renderService.onRenderedViewportChange(() => this._doRefreshDecorations()));
3232
this.register(this._renderService.onDimensionsChange(() => {
3333
this._dimensionsChanged = true;
3434
this._queueRefresh();
@@ -50,12 +50,12 @@ export class BufferDecorationRenderer extends Disposable {
5050
return;
5151
}
5252
this._animationFrame = this._renderService.addRefreshCallback(() => {
53-
this.refreshDecorations();
53+
this._doRefreshDecorations();
5454
this._animationFrame = undefined;
5555
});
5656
}
5757

58-
public refreshDecorations(): void {
58+
private _doRefreshDecorations(): void {
5959
for (const decoration of this._decorationService.decorations) {
6060
this._renderDecoration(decoration);
6161
}

0 commit comments

Comments
 (0)