@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.
@@ -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 (window.PointerEvent) {
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") {