Merge pull request #842 from Zagrios/bugfix/browsing-for-maps-in-fullscreen-was-broken

[bugfix] In fullscreen, only the first page of downloadable maps coul…
This commit is contained in:
MathieuG-P
2025-04-06 15:05:44 +02:00
committed by GitHub
@@ -72,9 +72,6 @@ export function VirtualScroll<T = unknown>({ className, classNames, minItemWidth
const { scrollDirection, scrollOffset, scrollUpdateWasRequested } = e;
const { scrollHeight } = listRef.current;
if(!scrollHeight || !listHeight){ return; }
const margin = scrollEnd.margin ?? 0;
if (scrollDirection === "forward" && !scrollUpdateWasRequested && scrollOffset + listHeight + margin >= scrollHeight) {