Skip to content

Commit 85a2589

Browse files
authored
Merge pull request #2999 from andrew-schlackman/fix-renderer-pause
fix renderer pausing inadvertently in some cases
2 parents 2c82115 + 5738f45 commit 85a2589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/services/RenderService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class RenderService extends Disposable implements IRenderService {
8686
}
8787

8888
private _onIntersectionChange(entry: IntersectionObserverEntry): void {
89-
this._isPaused = entry.intersectionRatio === 0;
89+
this._isPaused = !entry.isIntersecting;
9090
if (!this._isPaused && this._needsFullRefresh) {
9191
this.refreshRows(0, this._rowCount - 1);
9292
this._needsFullRefresh = false;

0 commit comments

Comments
 (0)