[bugfix] In fullscreen, only the first page of downloadable maps could be loaded

This commit is contained in:
Zagrios
2025-04-06 14:58:19 +02:00
parent e41737decf
commit 64abf3ae82
@@ -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) {