@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.
@@ -478,9 +478,18 @@ var pops = (function () {
478
478
  result = addType ? result + resultType.toString() : parseFloat(result.toString());
479
479
  return result;
480
480
  }
481
+ /**
482
+ * https://github.com/any86/any-touch/blob/master/README.CN.md
483
+ */
481
484
  AnyTouch = () => {
482
485
  return i;
483
486
  };
487
+ /**
488
+ * `any-touch`的`doubletap`事件插件
489
+ */
490
+ AnyTouchDoubleTapPlugin = () => {
491
+ return e;
492
+ };
484
493
  /**
485
494
  * 通过navigator.userAgent判断是否是手机访问
486
495
  * @param userAgent
@@ -3534,14 +3543,14 @@ var pops = (function () {
3534
3543
  element.hasAttribute("anim"));
3535
3544
  }
3536
3545
  // 判断按下的元素是否是pops-anim
3537
- popsDOMUtils.on(config.animElement, ["touchstart", "mousedown"], (event) => {
3546
+ popsDOMUtils.on(config.animElement, "pointerup", (event) => {
3538
3547
  const $click = event.composedPath()[0];
3539
3548
  isMaskClick = isAnimElement($click);
3540
3549
  });
3541
3550
  // 如果有动画层,在动画层上监听点击事件
3542
3551
  popsDOMUtils.on(config.animElement, "click", (event) => {
3543
3552
  const $click = event.composedPath()[0];
3544
- if (isAnimElement($click) && isMaskClick) {
3553
+ if (isMaskClick && isAnimElement($click)) {
3545
3554
  return clickEvent(event);
3546
3555
  }
3547
3556
  });
@@ -13298,7 +13307,7 @@ var pops = (function () {
13298
13307
  },
13299
13308
  };
13300
13309
 
13301
- const version = "3.3.1";
13310
+ const version = "3.3.2";
13302
13311
 
13303
13312
  class Pops {
13304
13313
  /** 配置 */