feat(ui): fix endless gallery scroll for single col layout

This commit is contained in:
psychedelicious 2023-05-05 14:48:18 +10:00
parent 49db6f4fac
commit ff3aa57117

View File

@ -298,6 +298,7 @@ const ImageGalleryContent = () => {
<Virtuoso <Virtuoso
style={{ height: '100%' }} style={{ height: '100%' }}
data={images} data={images}
endReached={handleEndReached}
scrollerRef={(ref) => setScrollerRef(ref)} scrollerRef={(ref) => setScrollerRef(ref)}
itemContent={(index, image) => { itemContent={(index, image) => {
const { name } = image; const { name } = image;