share animation frame with renderService (#3796)
This commit is contained in:
@@ -51,7 +51,7 @@ export class BufferDecorationRenderer extends Disposable {
|
||||
if (this._animationFrame !== undefined) {
|
||||
return;
|
||||
}
|
||||
this._animationFrame = window.requestAnimationFrame(() => {
|
||||
this._animationFrame = this._renderService.addRefreshCallback(() => {
|
||||
this.refreshDecorations();
|
||||
this._animationFrame = undefined;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user