Skip to content

Commit

Permalink
Scroll replayer iframe on firstFullsnapshot (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
armata007 authored Dec 30, 2020
1 parent e946b69 commit c4d01e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ export class Replayer {
this.rebuildFullSnapshot(
firstFullsnapshot as fullSnapshotEvent & { timestamp: number },
);
this.iframe.contentWindow!.scrollTo(
(firstFullsnapshot as fullSnapshotEvent).data.initialOffset,
);
}, 1);
}
}
Expand Down

0 comments on commit c4d01e3

Please sign in to comment.