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' });