@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.cjs
CHANGED
|
@@ -5420,7 +5420,9 @@ function initStyleSheetObserver({ styleSheetRuleCb, mirror: mirror2, stylesheetM
|
|
|
5420
5420
|
id,
|
|
5421
5421
|
styleId,
|
|
5422
5422
|
removes: [
|
|
5423
|
-
{
|
|
5423
|
+
{
|
|
5424
|
+
index: [...getNestedCSSRulePositions(win, thisArg), index]
|
|
5425
|
+
}
|
|
5424
5426
|
]
|
|
5425
5427
|
});
|
|
5426
5428
|
}
|
|
@@ -7504,13 +7506,17 @@ function record(options = {}) {
|
|
|
7504
7506
|
init();
|
|
7505
7507
|
} else {
|
|
7506
7508
|
handlers.push(
|
|
7507
|
-
on(
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7509
|
+
on(
|
|
7510
|
+
"DOMContentLoaded",
|
|
7511
|
+
() => {
|
|
7512
|
+
wrappedEmit({
|
|
7513
|
+
type: EventType.DomContentLoaded,
|
|
7514
|
+
data: {}
|
|
7515
|
+
});
|
|
7516
|
+
if (recordAfter === "DOMContentLoaded") init();
|
|
7517
|
+
},
|
|
7518
|
+
win.document
|
|
7519
|
+
)
|
|
7514
7520
|
);
|
|
7515
7521
|
handlers.push(
|
|
7516
7522
|
on(
|
|
@@ -8715,9 +8721,7 @@ class Replayer {
|
|
|
8715
8721
|
}
|
|
8716
8722
|
});
|
|
8717
8723
|
if (hasAnyTail) {
|
|
8718
|
-
this.mouseTailAnimationFrame = requestAnimationFrame(
|
|
8719
|
-
this.stepMouseTails
|
|
8720
|
-
);
|
|
8724
|
+
this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
|
|
8721
8725
|
} else {
|
|
8722
8726
|
this.mouseTailAnimationFrame = null;
|
|
8723
8727
|
}
|
|
@@ -10249,9 +10253,7 @@ class Replayer {
|
|
|
10249
10253
|
const now = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
10250
10254
|
pointer.tailPositions.push({ x: position.x, y: position.y, t: now });
|
|
10251
10255
|
if (this.mouseTailAnimationFrame === null) {
|
|
10252
|
-
this.mouseTailAnimationFrame = requestAnimationFrame(
|
|
10253
|
-
this.stepMouseTails
|
|
10254
|
-
);
|
|
10256
|
+
this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
|
|
10255
10257
|
}
|
|
10256
10258
|
}
|
|
10257
10259
|
hoverElements(el) {
|