@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.amd.js CHANGED
@@ -2041,7 +2041,8 @@ define((function () { 'use strict';
2041
2041
  return options.preventEvent(event);
2042
2042
  }
2043
2043
  else {
2044
- return false;
2044
+ // 返回true阻止滑动
2045
+ return true;
2045
2046
  }
2046
2047
  },
2047
2048
  });
@@ -3986,6 +3987,8 @@ define((function () { 'use strict';
3986
3987
  if (typeof config?.btn?.min?.callback === "function") {
3987
3988
  config.btn.min.callback(eventDetails, event);
3988
3989
  }
3990
+ }, {
3991
+ capture: true,
3989
3992
  });
3990
3993
  /* 最大化按钮点击事件 */
3991
3994
  popsDOMUtils.on(headerMaxBtnElement, "click", (event) => {
@@ -4013,6 +4016,8 @@ define((function () { 'use strict';
4013
4016
  if (typeof config?.btn?.max?.callback === "function") {
4014
4017
  config.btn.max.callback(eventDetails, event);
4015
4018
  }
4019
+ }, {
4020
+ capture: true,
4016
4021
  });
4017
4022
  /* 先隐藏窗口化按钮 */
4018
4023
  headerMiseBtnElement?.style?.setProperty("display", "none");
@@ -4048,13 +4053,19 @@ define((function () { 'use strict';
4048
4053
  if (typeof config?.btn?.mise?.callback === "function") {
4049
4054
  config.btn.mise.callback(eventDetails, event);
4050
4055
  }
4056
+ }, {
4057
+ capture: true,
4051
4058
  });
4052
4059
  /* 关闭按钮点击事件 */
4053
4060
  popsDOMUtils.on(headerCloseBtnElement, "click", (event) => {
4061
+ event.preventDefault();
4062
+ event.stopPropagation();
4054
4063
  PopsInstanceUtils.removeInstance([pops.config.layer.iframe], guid, false);
4055
4064
  if (typeof config?.btn?.close?.callback === "function") {
4056
4065
  config.btn.close.callback(eventDetails, event);
4057
4066
  }
4067
+ }, {
4068
+ capture: true,
4058
4069
  });
4059
4070
  PopsHandler.handlePush(PopsType, {
4060
4071
  guid: guid,