@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/dist/index.cjs.js CHANGED
@@ -239,7 +239,7 @@ const clearTimeout$1 = (timerId) => loadOrReturnBroker().clearTimeout(timerId);
239
239
  const setInterval$1 = (...args) => loadOrReturnBroker().setInterval(...args);
240
240
  const setTimeout$1 = (...args) => loadOrReturnBroker().setTimeout(...args);
241
241
 
242
- const version = "2.11.10";
242
+ const version = "2.11.11";
243
243
 
244
244
  /* eslint-disable */
245
245
  // ==UserScript==
@@ -6306,10 +6306,11 @@ class Utils {
6306
6306
  left: maxRect.left,
6307
6307
  };
6308
6308
  }
6309
- let calcZIndex = zIndex + deviation;
6309
+ const calcZIndex = zIndex + deviation;
6310
6310
  if (calcZIndex >= maxZIndexCompare) {
6311
6311
  // 不要超过最大值
6312
- calcZIndex = maxZIndexCompare;
6312
+ // 超过就忽略
6313
+ return;
6313
6314
  }
6314
6315
  return {
6315
6316
  /** 计算偏移量后的z-index值 */