@whitesev/pops 1.7.6 → 1.7.7

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
@@ -2045,7 +2045,8 @@
2045
2045
  return options.preventEvent(event);
2046
2046
  }
2047
2047
  else {
2048
- return false;
2048
+ // 返回true阻止滑动
2049
+ return true;
2049
2050
  }
2050
2051
  },
2051
2052
  });
@@ -3990,6 +3991,8 @@
3990
3991
  if (typeof config?.btn?.min?.callback === "function") {
3991
3992
  config.btn.min.callback(eventDetails, event);
3992
3993
  }
3994
+ }, {
3995
+ capture: true,
3993
3996
  });
3994
3997
  /* 最大化按钮点击事件 */
3995
3998
  popsDOMUtils.on(headerMaxBtnElement, "click", (event) => {
@@ -4017,6 +4020,8 @@
4017
4020
  if (typeof config?.btn?.max?.callback === "function") {
4018
4021
  config.btn.max.callback(eventDetails, event);
4019
4022
  }
4023
+ }, {
4024
+ capture: true,
4020
4025
  });
4021
4026
  /* 先隐藏窗口化按钮 */
4022
4027
  headerMiseBtnElement?.style?.setProperty("display", "none");
@@ -4052,13 +4057,19 @@
4052
4057
  if (typeof config?.btn?.mise?.callback === "function") {
4053
4058
  config.btn.mise.callback(eventDetails, event);
4054
4059
  }
4060
+ }, {
4061
+ capture: true,
4055
4062
  });
4056
4063
  /* 关闭按钮点击事件 */
4057
4064
  popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
4065
+ event.preventDefault();
4066
+ event.stopPropagation();
4058
4067
  PopsInstanceUtils.removeInstance([pops.config.layer.iframe], guid, false);
4059
4068
  if (typeof config?.btn?.close?.callback === "function") {
4060
4069
  config.btn.close.callback(eventDetails, event);
4061
4070
  }
4071
+ }, {
4072
+ capture: true,
4062
4073
  });
4063
4074
  PopsHandler.handlePush(PopsType, {
4064
4075
  guid: guid,