Skip to content

Commit bd08862

Browse files
authored
Merge pull request #3006 from Tyriar/revert
Revert "fix renderer pausing inadvertently in some cases"
2 parents 6d1029b + 70e0c03 commit bd08862

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.isIntersecting;
89+
this._isPaused = entry.intersectionRatio === 0;
9090
if (!this._isPaused && this._needsFullRefresh) {
9191
this.refreshRows(0, this._rowCount - 1);
9292
this._needsFullRefresh = false;

0 commit comments

Comments
 (0)