@screeb/rrweb 1.0.0 → 1.0.2
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 +3 -3
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.d.cts +3 -1
- package/dist/rrweb.d.ts +3 -1
- package/dist/rrweb.js +3 -3
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +3 -3
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +26 -26
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.cjs
CHANGED
|
@@ -11590,7 +11590,6 @@ function initMoveObserver({
|
|
|
11590
11590
|
function initMouseInteractionObserver({
|
|
11591
11591
|
mouseInteractionCb,
|
|
11592
11592
|
doc,
|
|
11593
|
-
win,
|
|
11594
11593
|
mirror: mirror2,
|
|
11595
11594
|
blockClass,
|
|
11596
11595
|
blockSelector,
|
|
@@ -11662,7 +11661,7 @@ function initMouseInteractionObserver({
|
|
|
11662
11661
|
).forEach((eventKey) => {
|
|
11663
11662
|
let eventName = toLowerCase(eventKey);
|
|
11664
11663
|
const handler = getHandler(eventKey);
|
|
11665
|
-
if (
|
|
11664
|
+
if (window.PointerEvent) {
|
|
11666
11665
|
switch (MouseInteractions[eventKey]) {
|
|
11667
11666
|
case MouseInteractions.MouseDown:
|
|
11668
11667
|
case MouseInteractions.MouseUp:
|
|
@@ -13589,12 +13588,13 @@ function record(options = {}) {
|
|
|
13589
13588
|
userTriggeredOnInput = false,
|
|
13590
13589
|
collectFonts = false,
|
|
13591
13590
|
inlineImages = false,
|
|
13592
|
-
win = window,
|
|
13591
|
+
win: _win = window,
|
|
13593
13592
|
plugins,
|
|
13594
13593
|
keepIframeSrcFn = () => false,
|
|
13595
13594
|
ignoreCSSAttributes = /* @__PURE__ */ new Set([]),
|
|
13596
13595
|
errorHandler: errorHandler2
|
|
13597
13596
|
} = options;
|
|
13597
|
+
const win = _win;
|
|
13598
13598
|
registerErrorHandler(errorHandler2);
|
|
13599
13599
|
const inEmittingFrame = recordCrossOriginIframes ? win.parent === win : true;
|
|
13600
13600
|
let passEmitsToParent = false;
|