mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01: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
Reference in a new issue