Skip to content

Commit

Permalink
📚 Quick typo check. Update replay.md (rrweb-io#237)
Browse files Browse the repository at this point in the history
Precise typo check of inprecise -> imprecise
  • Loading branch information
slimlime authored Jul 1, 2020
1 parent 0988e45 commit 3faace3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/replay.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ During replay, we will get the complete snapshot chain at one time. If all the s

The reason why **high precision** is emphasized is because the native `setTimeout` does not guarantee accurate execution after the set delay time, for example, when the main thread is blocked.

For our replay function, this inprecise delay is unacceptable and can lead to various weird phenomena, so we implement a constantly calibrated timer with `requestAnimationFrame` to ensure that in most cases incremental snapshots have a replay delay of no more than one frame.
For our replay function, this imprecise delay is unacceptable and can lead to various weird phenomena, so we implement a constantly calibrated timer with `requestAnimationFrame` to ensure that in most cases incremental snapshots have a replay delay of no more than one frame.

At the same time, the custom timer is also the basis for our "fast forward" function.

Expand Down

0 comments on commit 3faace3

Please sign in to comment.