From 61d74263d9a72997baa3ae2519a42bae3bea23a6 Mon Sep 17 00:00:00 2001 From: Thomas <9749173+uhthomas@users.noreply.github.com> Date: Fri, 16 Jun 2023 19:55:11 +0100 Subject: [PATCH] fix(web): hide memory lane navigation properly on scaled resolutions (#2819) Fixes: #2817 --- web/src/lib/components/photos-page/memory-lane.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/photos-page/memory-lane.svelte b/web/src/lib/components/photos-page/memory-lane.svelte index b41d510aeb..843a38ea98 100644 --- a/web/src/lib/components/photos-page/memory-lane.svelte +++ b/web/src/lib/components/photos-page/memory-lane.svelte @@ -26,7 +26,7 @@ const onScroll = () => (scrollLeftPosition = memoryLaneElement?.scrollLeft); $: canScrollLeft = scrollLeftPosition > 0; - $: canScrollRight = scrollLeftPosition < innerWidth - offsetWidth; + $: canScrollRight = Math.ceil(scrollLeftPosition) < innerWidth - offsetWidth; const scrollBy = 400; const scrollLeft = () => memoryLaneElement.scrollBy({ left: -scrollBy, behavior: 'smooth' });