@screeb/rrweb 1.0.2 → 1.0.3
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 -2
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +3 -2
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +3 -2
- package/dist/rrweb.umd.cjs.map +2 -2
- package/dist/rrweb.umd.min.cjs +12 -12
- package/dist/rrweb.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/rrweb.umd.cjs
CHANGED
|
@@ -11624,6 +11624,7 @@ function initMoveObserver({
|
|
|
11624
11624
|
function initMouseInteractionObserver({
|
|
11625
11625
|
mouseInteractionCb,
|
|
11626
11626
|
doc,
|
|
11627
|
+
win,
|
|
11627
11628
|
mirror: mirror2,
|
|
11628
11629
|
blockClass,
|
|
11629
11630
|
blockSelector,
|
|
@@ -11694,7 +11695,7 @@ function initMouseInteractionObserver({
|
|
|
11694
11695
|
).forEach((eventKey) => {
|
|
11695
11696
|
let eventName = toLowerCase(eventKey);
|
|
11696
11697
|
const handler = getHandler(eventKey);
|
|
11697
|
-
if (
|
|
11698
|
+
if (win.PointerEvent) {
|
|
11698
11699
|
switch (MouseInteractions[eventKey]) {
|
|
11699
11700
|
case MouseInteractions.MouseDown:
|
|
11700
11701
|
case MouseInteractions.MouseUp:
|
|
@@ -14009,7 +14010,7 @@ function record(options = {}) {
|
|
|
14009
14010
|
});
|
|
14010
14011
|
const init = () => {
|
|
14011
14012
|
takeFullSnapshot$1();
|
|
14012
|
-
handlers.push(observe(document));
|
|
14013
|
+
handlers.push(observe(win.document));
|
|
14013
14014
|
recording = true;
|
|
14014
14015
|
};
|
|
14015
14016
|
if (win.document.readyState === "interactive" || win.document.readyState === "complete") {
|