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