@whitesev/utils 2.11.10 → 2.11.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@whitesev/utils",
4
- "version": "2.11.10",
4
+ "version": "2.11.11",
5
5
  "description": "一个常用的工具库",
6
6
  "keywords": [
7
7
  "ScriptCat",
package/src/Utils.ts CHANGED
@@ -1066,10 +1066,11 @@ class Utils {
1066
1066
  left: maxRect.left,
1067
1067
  };
1068
1068
  }
1069
- let calcZIndex = zIndex + deviation;
1069
+ const calcZIndex = zIndex + deviation;
1070
1070
  if (calcZIndex >= maxZIndexCompare) {
1071
1071
  // 不要超过最大值
1072
- calcZIndex = maxZIndexCompare;
1072
+ // 超过就忽略
1073
+ return;
1073
1074
  }
1074
1075
  return {
1075
1076
  /** 计算偏移量后的z-index值 */