@screeb/rrweb 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb.cjs +16 -14
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +16 -14
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +17 -15
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs.map +2 -2
- package/package.json +2 -2
package/dist/rrweb.js
CHANGED
|
@@ -5418,7 +5418,9 @@ function initStyleSheetObserver({ styleSheetRuleCb, mirror: mirror2, stylesheetM
|
|
|
5418
5418
|
id,
|
|
5419
5419
|
styleId,
|
|
5420
5420
|
removes: [
|
|
5421
|
-
{
|
|
5421
|
+
{
|
|
5422
|
+
index: [...getNestedCSSRulePositions(win, thisArg), index]
|
|
5423
|
+
}
|
|
5422
5424
|
]
|
|
5423
5425
|
});
|
|
5424
5426
|
}
|
|
@@ -7502,13 +7504,17 @@ function record(options = {}) {
|
|
|
7502
7504
|
init();
|
|
7503
7505
|
} else {
|
|
7504
7506
|
handlers.push(
|
|
7505
|
-
on(
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7507
|
+
on(
|
|
7508
|
+
"DOMContentLoaded",
|
|
7509
|
+
() => {
|
|
7510
|
+
wrappedEmit({
|
|
7511
|
+
type: EventType.DomContentLoaded,
|
|
7512
|
+
data: {}
|
|
7513
|
+
});
|
|
7514
|
+
if (recordAfter === "DOMContentLoaded") init();
|
|
7515
|
+
},
|
|
7516
|
+
win.document
|
|
7517
|
+
)
|
|
7512
7518
|
);
|
|
7513
7519
|
handlers.push(
|
|
7514
7520
|
on(
|
|
@@ -8713,9 +8719,7 @@ class Replayer {
|
|
|
8713
8719
|
}
|
|
8714
8720
|
});
|
|
8715
8721
|
if (hasAnyTail) {
|
|
8716
|
-
this.mouseTailAnimationFrame = requestAnimationFrame(
|
|
8717
|
-
this.stepMouseTails
|
|
8718
|
-
);
|
|
8722
|
+
this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
|
|
8719
8723
|
} else {
|
|
8720
8724
|
this.mouseTailAnimationFrame = null;
|
|
8721
8725
|
}
|
|
@@ -10247,9 +10251,7 @@ class Replayer {
|
|
|
10247
10251
|
const now = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
10248
10252
|
pointer.tailPositions.push({ x: position.x, y: position.y, t: now });
|
|
10249
10253
|
if (this.mouseTailAnimationFrame === null) {
|
|
10250
|
-
this.mouseTailAnimationFrame = requestAnimationFrame(
|
|
10251
|
-
this.stepMouseTails
|
|
10252
|
-
);
|
|
10254
|
+
this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
|
|
10253
10255
|
}
|
|
10254
10256
|
}
|
|
10255
10257
|
hoverElements(el) {
|