From ac2579675336663164fdd2f1cb13f35058728f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Salwa?= Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] Scroll replayer iframe on firstFullsnapshot (#451) --- src/replay/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/replay/index.ts b/src/replay/index.ts index ca506b24..6d570500 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -236,6 +236,9 @@ export class Replayer { this.rebuildFullSnapshot( firstFullsnapshot as fullSnapshotEvent & { timestamp: number }, ); + this.iframe.contentWindow!.scrollTo( + (firstFullsnapshot as fullSnapshotEvent).data.initialOffset, + ); }, 1); } }