Discovered that the common case of mouse movement or scrolling happening during takeFullSnapshot was causing mutations to be immediately emitted, contrary to the goal of https://github.com/rrweb-io/rrweb/pull/385 (#470)

This commit is contained in:
Eoghan Murray
2021-01-31 13:43:36 +00:00
committed by GitHub
parent 13f1a61743
commit 9187bec814
3 changed files with 20 additions and 9 deletions

View File

@@ -21,6 +21,8 @@ export default class MutationBuffer {
freeze(): void;
unfreeze(): void;
isFrozen(): boolean;
lock(): void;
unlock(): void;
processMutations: (mutations: mutationRecord[]) => void;
emit: () => void;
private processMutation;