Skip to content

High performance self-hosted photo and video management solution.

fix(web): hide scroll right button when scrolled to the right in memory lane (#16656)

Lukasfdf2331c8208
diff --git a/web/src/lib/components/photos-page/memory-lane.svelte b/web/src/lib/components/photos-page/memory-lane.svelte
index e3f0ee89ab..4667af1c6d 100644
--- a/web/src/lib/components/photos-page/memory-lane.svelte
+++ b/web/src/lib/components/photos-page/memory-lane.svelte
@@ -27,7 +27,7 @@
};
let canScrollLeft = $derived(scrollLeftPosition > 0);
- let canScrollRight = $derived(Math.ceil(scrollLeftPosition) < innerWidth - offsetWidth);
+ let canScrollRight = $derived(Math.ceil(scrollLeftPosition) < Math.floor(innerWidth - offsetWidth));
const scrollBy = 400;
const scrollLeft = () => memoryLaneElement?.scrollBy({ left: -scrollBy, behavior: 'smooth' });