fix calculation of visible range

This commit is contained in:
or-else
2023-05-11 16:57:22 -07:00
parent fd08d19939
commit 8403e3e9b4
5 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -198,9 +198,10 @@ class MessagesView extends React.Component {
// The remaining elements are no longer visible, no need to iterate them.
return false;
}
return true;
}
return true;
});
return max >= min ? {min: min, max: max} : {min: 0, max: 0};
}