@screeb/rrweb 1.0.2 → 1.0.4
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 +6 -5
- package/dist/rrweb.cjs.map +1 -1
- package/dist/rrweb.js +6 -5
- package/dist/rrweb.js.map +1 -1
- package/dist/rrweb.umd.cjs +6 -5
- 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.js
CHANGED
|
@@ -11588,6 +11588,7 @@ function initMoveObserver({
|
|
|
11588
11588
|
function initMouseInteractionObserver({
|
|
11589
11589
|
mouseInteractionCb,
|
|
11590
11590
|
doc,
|
|
11591
|
+
win,
|
|
11591
11592
|
mirror: mirror2,
|
|
11592
11593
|
blockClass,
|
|
11593
11594
|
blockSelector,
|
|
@@ -11659,7 +11660,7 @@ function initMouseInteractionObserver({
|
|
|
11659
11660
|
).forEach((eventKey) => {
|
|
11660
11661
|
let eventName = toLowerCase(eventKey);
|
|
11661
11662
|
const handler = getHandler(eventKey);
|
|
11662
|
-
if (
|
|
11663
|
+
if (win.PointerEvent) {
|
|
11663
11664
|
switch (MouseInteractions[eventKey]) {
|
|
11664
11665
|
case MouseInteractions.MouseDown:
|
|
11665
11666
|
case MouseInteractions.MouseUp:
|
|
@@ -11715,14 +11716,14 @@ function initScrollObserver({
|
|
|
11715
11716
|
);
|
|
11716
11717
|
return on("scroll", updatePosition, doc);
|
|
11717
11718
|
}
|
|
11718
|
-
function initViewportResizeObserver({ viewportResizeCb }, { win }) {
|
|
11719
|
+
function initViewportResizeObserver({ viewportResizeCb, win: _win }, { win }) {
|
|
11719
11720
|
let lastH = -1;
|
|
11720
11721
|
let lastW = -1;
|
|
11721
11722
|
const updateDimension = callbackWrapper(
|
|
11722
11723
|
throttle(
|
|
11723
11724
|
callbackWrapper(() => {
|
|
11724
|
-
const height = getWindowHeight(
|
|
11725
|
-
const width = getWindowWidth(
|
|
11725
|
+
const height = getWindowHeight(_win);
|
|
11726
|
+
const width = getWindowWidth(_win);
|
|
11726
11727
|
if (lastH !== height || lastW !== width) {
|
|
11727
11728
|
viewportResizeCb({
|
|
11728
11729
|
width: Number(width),
|
|
@@ -13990,7 +13991,7 @@ function record(options = {}) {
|
|
|
13990
13991
|
});
|
|
13991
13992
|
const init = () => {
|
|
13992
13993
|
takeFullSnapshot$1();
|
|
13993
|
-
handlers.push(observe(document));
|
|
13994
|
+
handlers.push(observe(win.document));
|
|
13994
13995
|
recording = true;
|
|
13995
13996
|
};
|
|
13996
13997
|
if (win.document.readyState === "interactive" || win.document.readyState === "complete") {
|