rm change I don't think was needed

This commit is contained in:
Samuel Newman
2024-11-27 09:29:54 +00:00
parent 06d909b405
commit a0f0439dbb
@@ -148,12 +148,6 @@ export function MessagesList({
// we will not scroll whenever new items get prepended to the top.
const onContentSizeChange = useCallback(
(_: number, height: number) => {
// ignore very small changes
if (Math.abs(prevContentHeight.current - height) < 0.01) {
prevContentHeight.current = height
return
}
// Because web does not have `maintainVisibleContentPosition` support, we will need to manually scroll to the
// previous off whenever we add new content to the previous offset whenever we add new content to the list.
if (isWeb && isAtTop.get() && hasScrolled) {