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