perf(room): increase virtualizer overscan to 30 for smoother scrolling

This commit is contained in:
ZhenYi 2026-04-17 21:31:36 +08:00
parent 5cd4c66445
commit bab675cf60

View File

@ -213,7 +213,7 @@ const RoomMessageListInner = memo(function RoomMessageListInner({
if (row?.type === 'message' && row.message) return estimateMessageRowHeight(row.message); if (row?.type === 'message' && row.message) return estimateMessageRowHeight(row.message);
return 60; return 60;
}, },
overscan: 5, overscan: 30,
gap: 0, gap: 0,
}); });