From 64abf3ae82bcc538c0702be61195f080cad26fa6 Mon Sep 17 00:00:00 2001 From: Zagrios <40181755+Zagrios@users.noreply.github.com> Date: Sun, 6 Apr 2025 14:58:19 +0200 Subject: [PATCH] [bugfix] In fullscreen, only the first page of downloadable maps could be loaded --- .../shared/virtual-scroll/virtual-scroll.component.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/renderer/components/shared/virtual-scroll/virtual-scroll.component.tsx b/src/renderer/components/shared/virtual-scroll/virtual-scroll.component.tsx index 55cf3473..9365d8a0 100644 --- a/src/renderer/components/shared/virtual-scroll/virtual-scroll.component.tsx +++ b/src/renderer/components/shared/virtual-scroll/virtual-scroll.component.tsx @@ -72,9 +72,6 @@ export function VirtualScroll({ 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) {