From c4d01e31daa424f30f352e45a8afe1fa4b0e84a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Salwa?= Date: Wed, 30 Dec 2020 15:31:29 +0100 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); } }