@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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11632,6 +11632,7 @@ function trackPointerDrag(source, element, pointerId, onMove, onEnd) {
|
|
|
11632
11632
|
element.addEventListener("lostpointercapture", onLostCapture);
|
|
11633
11633
|
return stop;
|
|
11634
11634
|
}
|
|
11635
|
+
var CAPTURE = { capture: true };
|
|
11635
11636
|
function suppressFollowingClick(target) {
|
|
11636
11637
|
let cleaned = false;
|
|
11637
11638
|
const cleanup = () => {
|
|
@@ -11639,8 +11640,8 @@ function suppressFollowingClick(target) {
|
|
|
11639
11640
|
return;
|
|
11640
11641
|
}
|
|
11641
11642
|
cleaned = true;
|
|
11642
|
-
target.removeEventListener("click", swallowClick,
|
|
11643
|
-
target.removeEventListener("pointerdown", cancel,
|
|
11643
|
+
target.removeEventListener("click", swallowClick, CAPTURE);
|
|
11644
|
+
target.removeEventListener("pointerdown", cancel, CAPTURE);
|
|
11644
11645
|
};
|
|
11645
11646
|
const swallowClick = (event) => {
|
|
11646
11647
|
event.preventDefault();
|
|
@@ -11651,8 +11652,8 @@ function suppressFollowingClick(target) {
|
|
|
11651
11652
|
const cancel = () => {
|
|
11652
11653
|
cleanup();
|
|
11653
11654
|
};
|
|
11654
|
-
target.addEventListener("click", swallowClick,
|
|
11655
|
-
target.addEventListener("pointerdown", cancel,
|
|
11655
|
+
target.addEventListener("click", swallowClick, CAPTURE);
|
|
11656
|
+
target.addEventListener("pointerdown", cancel, CAPTURE);
|
|
11656
11657
|
setTimeout(cleanup, CLICK_SUPPRESS_MS);
|
|
11657
11658
|
}
|
|
11658
11659
|
|