Skip to content

Commit c06c1a1

Browse files
committed
Review comments
1 parent 28296e8 commit c06c1a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/virtual-core/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,10 @@ export class Virtualizer<
573573

574574
private rafId: number | null = null
575575
private scheduleScrollReconcile() {
576-
if (!this.targetWindow) return
576+
if (!this.targetWindow) {
577+
this.scrollState = null
578+
return
579+
}
577580
if (this.rafId != null) return
578581
this.rafId = this.targetWindow.requestAnimationFrame(() => {
579582
this.rafId = null

0 commit comments

Comments
 (0)