forked from dark_thunder/immich
fix(web): hide memory lane navigation properly on scaled resolutions (#2819)
Fixes: #2817
This commit is contained in:
@ -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' });
|
||||
|
Reference in New Issue
Block a user