Scroll replayer iframe on firstFullsnapshot (#451)

This commit is contained in:
Jarosław Salwa
2020-12-30 15:31:29 +01:00
committed by GitHub
parent e946b69d3f
commit c4d01e31da

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);
}
}