@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.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 (window.PointerEvent) {
11663
+ if (win.PointerEvent) {
11663
11664
  switch (MouseInteractions[eventKey]) {
11664
11665
  case MouseInteractions.MouseDown:
11665
11666
  case MouseInteractions.MouseUp:
@@ -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") {