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