@whitesev/pops 3.3.1 → 3.3.2
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.amd.js +12 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.amd.min.js +1 -1
- package/dist/index.amd.min.js.map +1 -1
- package/dist/index.cjs.js +12 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +12 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/index.iife.js +12 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.system.js +12 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/dist/index.umd.js +12 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/Pops.d.ts +1 -0
- package/dist/types/src/utils/PopsUtils.d.ts +8 -0
- package/package.json +2 -1
- package/src/handler/PopsHandler.ts +2 -2
- package/src/utils/PopsUtils.ts +10 -0
package/dist/index.system.js
CHANGED
|
@@ -480,9 +480,18 @@ System.register('pops', [], (function (exports) {
|
|
|
480
480
|
result = addType ? result + resultType.toString() : parseFloat(result.toString());
|
|
481
481
|
return result;
|
|
482
482
|
}
|
|
483
|
+
/**
|
|
484
|
+
* https://github.com/any86/any-touch/blob/master/README.CN.md
|
|
485
|
+
*/
|
|
483
486
|
AnyTouch = () => {
|
|
484
487
|
return i;
|
|
485
488
|
};
|
|
489
|
+
/**
|
|
490
|
+
* `any-touch`的`doubletap`事件插件
|
|
491
|
+
*/
|
|
492
|
+
AnyTouchDoubleTapPlugin = () => {
|
|
493
|
+
return e;
|
|
494
|
+
};
|
|
486
495
|
/**
|
|
487
496
|
* 通过navigator.userAgent判断是否是手机访问
|
|
488
497
|
* @param userAgent
|
|
@@ -3536,14 +3545,14 @@ System.register('pops', [], (function (exports) {
|
|
|
3536
3545
|
element.hasAttribute("anim"));
|
|
3537
3546
|
}
|
|
3538
3547
|
// 判断按下的元素是否是pops-anim
|
|
3539
|
-
popsDOMUtils.on(config.animElement,
|
|
3548
|
+
popsDOMUtils.on(config.animElement, "pointerup", (event) => {
|
|
3540
3549
|
const $click = event.composedPath()[0];
|
|
3541
3550
|
isMaskClick = isAnimElement($click);
|
|
3542
3551
|
});
|
|
3543
3552
|
// 如果有动画层,在动画层上监听点击事件
|
|
3544
3553
|
popsDOMUtils.on(config.animElement, "click", (event) => {
|
|
3545
3554
|
const $click = event.composedPath()[0];
|
|
3546
|
-
if (isAnimElement($click)
|
|
3555
|
+
if (isMaskClick && isAnimElement($click)) {
|
|
3547
3556
|
return clickEvent(event);
|
|
3548
3557
|
}
|
|
3549
3558
|
});
|
|
@@ -13300,7 +13309,7 @@ System.register('pops', [], (function (exports) {
|
|
|
13300
13309
|
},
|
|
13301
13310
|
};
|
|
13302
13311
|
|
|
13303
|
-
const version = "3.3.
|
|
13312
|
+
const version = "3.3.2";
|
|
13304
13313
|
|
|
13305
13314
|
class Pops {
|
|
13306
13315
|
/** 配置 */
|