Scroll replayer iframe on firstFullsnapshot (#451)

This commit is contained in:
Jarosław Salwa
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 30026bb8f5
commit ac25796753

View File

@@ -236,6 +236,9 @@ export class Replayer {
this.rebuildFullSnapshot(
firstFullsnapshot as fullSnapshotEvent & { timestamp: number },
);
this.iframe.contentWindow!.scrollTo(
(firstFullsnapshot as fullSnapshotEvent).data.initialOffset,
);
}, 1);
}
}