Skip to content

Commit

Permalink
adjust scroll check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi-sl committed Aug 10, 2024
1 parent 623edbf commit 8bb254a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/NetworkTable/NetworkTableBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const NetworkTableBody = ({ height }) => {

useEffect(() => {
const outerRef = ref?.current?._outerRef;
if (outerRef.scrollTop + outerRef.offsetHeight + TABLE_ENTRY_HEIGHT === outerRef.scrollHeight) {
if (outerRef.scrollTop + outerRef.offsetHeight + TABLE_ENTRY_HEIGHT >= outerRef.scrollHeight) {
ref.current._outerRef.scrollTop = outerRef.scrollHeight;
}
}, [data, ref]);
Expand Down

0 comments on commit 8bb254a

Please sign in to comment.