fix renderer pausing inadvertently in some cases

This commit is contained in:
Andrew Schlackman
2020-07-09 16:20:37 -04:00
parent 01432a31d6
commit 5738f4545f
+1 -1
View File
@@ -86,7 +86,7 @@ export class RenderService extends Disposable implements IRenderService {
}
private _onIntersectionChange(entry: IntersectionObserverEntry): void {
this._isPaused = entry.intersectionRatio === 0;
this._isPaused = !entry.isIntersecting;
if (!this._isPaused && this._needsFullRefresh) {
this.refreshRows(0, this._rowCount - 1);
this._needsFullRefresh = false;