mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +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);
|
const onScroll = () => (scrollLeftPosition = memoryLaneElement?.scrollLeft);
|
||||||
|
|
||||||
$: canScrollLeft = scrollLeftPosition > 0;
|
$: canScrollLeft = scrollLeftPosition > 0;
|
||||||
$: canScrollRight = scrollLeftPosition < innerWidth - offsetWidth;
|
$: canScrollRight = Math.ceil(scrollLeftPosition) < innerWidth - offsetWidth;
|
||||||
|
|
||||||
const scrollBy = 400;
|
const scrollBy = 400;
|
||||||
const scrollLeft = () => memoryLaneElement.scrollBy({ left: -scrollBy, behavior: 'smooth' });
|
const scrollLeft = () => memoryLaneElement.scrollBy({ left: -scrollBy, behavior: 'smooth' });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue