@ericchen1990/pano-view 3.6.4 → 3.6.5

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/index.cjs CHANGED
@@ -11553,6 +11553,7 @@ function trackPointerDrag(source, element, pointerId, onMove, onEnd) {
11553
11553
  element.addEventListener("lostpointercapture", onLostCapture);
11554
11554
  return stop;
11555
11555
  }
11556
+ var CAPTURE = { capture: true };
11556
11557
  function suppressFollowingClick(target) {
11557
11558
  let cleaned = false;
11558
11559
  const cleanup = () => {
@@ -11560,8 +11561,8 @@ function suppressFollowingClick(target) {
11560
11561
  return;
11561
11562
  }
11562
11563
  cleaned = true;
11563
- target.removeEventListener("click", swallowClick, true);
11564
- target.removeEventListener("pointerdown", cancel, true);
11564
+ target.removeEventListener("click", swallowClick, CAPTURE);
11565
+ target.removeEventListener("pointerdown", cancel, CAPTURE);
11565
11566
  };
11566
11567
  const swallowClick = (event) => {
11567
11568
  event.preventDefault();
@@ -11572,8 +11573,8 @@ function suppressFollowingClick(target) {
11572
11573
  const cancel = () => {
11573
11574
  cleanup();
11574
11575
  };
11575
- target.addEventListener("click", swallowClick, true);
11576
- target.addEventListener("pointerdown", cancel, true);
11576
+ target.addEventListener("click", swallowClick, CAPTURE);
11577
+ target.addEventListener("pointerdown", cancel, CAPTURE);
11577
11578
  setTimeout(cleanup, CLICK_SUPPRESS_MS);
11578
11579
  }
11579
11580