@mw-kit/mw-ui 1.7.98 → 1.7.99
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -12882,10 +12882,10 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
|
|
|
12882
12882
|
if (event.target !== event.currentTarget) return;
|
|
12883
12883
|
var target = event.nativeEvent.target;
|
|
12884
12884
|
if (!target) return;
|
|
12885
|
-
var scrollTopMax = target.scrollHeight - target.
|
|
12885
|
+
var scrollTopMax = target.scrollHeight - target.getBoundingClientRect().height - 10;
|
|
12886
12886
|
var scrollTop = target.scrollTop;
|
|
12887
12887
|
|
|
12888
|
-
if (scrollTopMax
|
|
12888
|
+
if (scrollTopMax > 0 && scrollTop >= scrollTopMax) {
|
|
12889
12889
|
setLastPagination(function (prev) {
|
|
12890
12890
|
var now = new Date();
|
|
12891
12891
|
var diff = Math.abs((now.getTime() - prev.getTime()) / 1000);
|