onekijs-ui 0.19.9 → 0.19.10
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
CHANGED
|
@@ -5116,7 +5116,6 @@ const ListBodyComponent = ({ autoRefresh, bodyRef, className, follow, height, it
|
|
|
5116
5116
|
});
|
|
5117
5117
|
React.useEffect(() => {
|
|
5118
5118
|
const ref = parentRef ? parentRef : bodyRef;
|
|
5119
|
-
//console.log('parentRef', parentRef, 'ref', ref)
|
|
5120
5119
|
const atBottom = () => {
|
|
5121
5120
|
if (ref && ref.current) {
|
|
5122
5121
|
const sh = ref.current.scrollHeight;
|
|
@@ -5128,18 +5127,6 @@ const ListBodyComponent = ({ autoRefresh, bodyRef, className, follow, height, it
|
|
|
5128
5127
|
return false;
|
|
5129
5128
|
};
|
|
5130
5129
|
if (tail && scrollToIndex && totalSize && ref && ref.current) {
|
|
5131
|
-
// console.log(
|
|
5132
|
-
// 'scrollTop',
|
|
5133
|
-
// ref.current.scrollTop,
|
|
5134
|
-
// 'mouseRef',
|
|
5135
|
-
// mouseRef.current,
|
|
5136
|
-
// 'wheelRef',
|
|
5137
|
-
// wheelRef.current,
|
|
5138
|
-
// 'applyTail',
|
|
5139
|
-
// tailRef.current.applyTail,
|
|
5140
|
-
// 'atBottom',
|
|
5141
|
-
// atBottom(),
|
|
5142
|
-
// );
|
|
5143
5130
|
tailRef.current.lastScrollTop = ref.current.scrollTop;
|
|
5144
5131
|
if (!atBottom() && (mouseRef.current || wheelRef.current)) {
|
|
5145
5132
|
tailRef.current.applyTail = false;
|