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