diff --git a/frontend/src/views/Gallery.vue b/frontend/src/views/Gallery.vue index 1e86e1ba7..cfe021454 100644 --- a/frontend/src/views/Gallery.vue +++ b/frontend/src/views/Gallery.vue @@ -129,9 +129,10 @@ function onGridScroll() { if (cursor.value === null && searchCursor.value === null) return; const { scrollTop, scrollHeight, clientHeight } = document.documentElement; + const scrollOffset = 60; - // If we are at the bottom of the page, fetch more roms - if (scrollTop + clientHeight >= scrollHeight) { + // If we are close at the bottom of the page, fetch more roms + if (scrollTop + clientHeight + scrollOffset >= scrollHeight) { galleryFilter.value ? fetchMoreSearch() : fetchMoreRoms(route.params.platform);