mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(web): hide memory lane navigation properly on scaled resolutions (#2819)
Fixes: #2817
This commit is contained in:
parent
66ee065c0c
commit
61d74263d9
1 changed files with 1 additions and 1 deletions
|
@ -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' });
|
||||
|
|
Loading…
Reference in a new issue