Skip to content

Commit

Permalink
Scroll replayer iframe on firstFullsnapshot (rrweb-io#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
armata007 authored and eoghanmurray committed Jan 19, 2021
1 parent 1710b9e commit ff88b12
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 ff88b12

Please sign in to comment.