lyb-js 1.6.13 → 1.6.14

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.
@@ -22,6 +22,7 @@ export class LibJsResizeWatcher {
22
22
  return;
23
23
  //初始化时绑定窗口 resize 事件
24
24
  window.addEventListener("resize", this._handleResize);
25
+ window.addEventListener("orientationchange", this._handleResize);
25
26
  }
26
27
  /**
27
28
  * @description 注册一个窗口尺寸变化的监听器
package/lyb.js CHANGED
@@ -3519,6 +3519,7 @@ ${log3.label}:`, log3.value];
3519
3519
  if (mode === "h" || mode === "v")
3520
3520
  return;
3521
3521
  window.addEventListener("resize", this._handleResize);
3522
+ window.addEventListener("orientationchange", this._handleResize);
3522
3523
  }
3523
3524
  /**
3524
3525
  * @description 注册一个窗口尺寸变化的监听器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyb-js",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "description": "自用JS方法库",
5
5
  "license": "ISC",
6
6
  "type": "module",