shineout 3.8.0-beta.42 → 3.8.0-beta.43

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.0-beta.42'
525
+ version: '3.8.0-beta.43'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.0-beta.42');
12389
+ /* harmony default export */ var version = ('3.8.0-beta.43');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -62389,7 +62389,7 @@ var Sticky = function Sticky(props) {
62389
62389
  if (top !== undefined && Math.ceil(selfRect.top) <= top) {
62390
62390
  setFixedStyle(true, 'top', selfRect.left);
62391
62391
  return;
62392
- } else if (bottom !== undefined && Math.ceil(selfRect.bottom) + bottom > scrollRect.bottom) {
62392
+ } else if (bottom !== undefined && (Math.ceil(selfRect.bottom) + bottom > Math.max(window.innerHeight, scrollRect.bottom) || selfRect.bottom + bottom >= window.innerHeight)) {
62393
62393
  setFixedStyle(true, 'bottom', selfRect.left);
62394
62394
  return;
62395
62395
  } else {
@@ -72959,7 +72959,7 @@ var upload_interface = __webpack_require__(8821);
72959
72959
 
72960
72960
 
72961
72961
  /* harmony default export */ var src_0 = ({
72962
- version: '3.8.0-beta.42'
72962
+ version: '3.8.0-beta.43'
72963
72963
  });
72964
72964
  }();
72965
72965
  /******/ return __webpack_exports__;