mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Remove slideshowAnimatePanStrength option from code.
This commit is contained in:
parent
e128fb204a
commit
2232e9798a
4 changed files with 2 additions and 17 deletions
|
|
@ -2023,7 +2023,6 @@
|
|||
"skip_to_tags": "Skip to tags",
|
||||
"slideshow": "Slideshow",
|
||||
"slideshow_animate": "Animate slideshow",
|
||||
"slideshow_animate_pan_strength": "Pan strength percentage",
|
||||
"slideshow_animate_zoom_strength": "Zoom strength percentage",
|
||||
"slideshow_body": "Sit back and watch your photos play in a full-screen slideshow.",
|
||||
"slideshow_metadata_overlay_mode": "Overlay content",
|
||||
|
|
|
|||
|
|
@ -36,14 +36,8 @@
|
|||
|
||||
let { cursor, element = $bindable(), sharedLink, onReady, onError, onSwipe }: Props = $props();
|
||||
|
||||
const {
|
||||
slideshowState,
|
||||
slideshowLook,
|
||||
slideshowAnimate,
|
||||
slideshowDelay,
|
||||
//slideshowAnimatePanStrength,
|
||||
slideshowAnimateZoomStrength,
|
||||
} = slideshowStore;
|
||||
const { slideshowState, slideshowLook, slideshowAnimate, slideshowDelay, slideshowAnimateZoomStrength } =
|
||||
slideshowStore;
|
||||
const asset = $derived(cursor.current);
|
||||
|
||||
let visibleImageReady: boolean = $state(false);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
slideshowDelay,
|
||||
showProgressBar,
|
||||
slideshowAnimate,
|
||||
slideshowAnimatePanStrength,
|
||||
slideshowAnimateZoomStrength,
|
||||
slideshowNavigation,
|
||||
slideshowLook,
|
||||
|
|
@ -45,7 +44,6 @@
|
|||
let tempSlideshowDelay = $state($slideshowDelay);
|
||||
let tempShowProgressBar = $state($showProgressBar);
|
||||
let tempSlideshowAnimate = $state($slideshowAnimate);
|
||||
let tempSlideshowAnimatePanStrength = $state($slideshowAnimatePanStrength);
|
||||
let tempSlideshowAnimateZoomStrength = $state($slideshowAnimateZoomStrength);
|
||||
let tempSlideshowNavigation = $state($slideshowNavigation);
|
||||
let tempSlideshowLook = $state($slideshowLook);
|
||||
|
|
@ -91,7 +89,6 @@
|
|||
$slideshowDelay = tempSlideshowDelay;
|
||||
$showProgressBar = tempShowProgressBar;
|
||||
$slideshowAnimate = tempSlideshowAnimate;
|
||||
$slideshowAnimatePanStrength = tempSlideshowAnimatePanStrength;
|
||||
$slideshowAnimateZoomStrength = tempSlideshowAnimateZoomStrength;
|
||||
$slideshowNavigation = tempSlideshowNavigation;
|
||||
$slideshowLook = tempSlideshowLook;
|
||||
|
|
@ -164,9 +161,6 @@
|
|||
<Field label={$t('slideshow_animate')}>
|
||||
<Switch bind:checked={tempSlideshowAnimate} />
|
||||
</Field>
|
||||
<Field label={$t('slideshow_animate_pan_strength')}>
|
||||
<NumberInput bind:value={tempSlideshowAnimatePanStrength} min={1} max={100} disabled={!tempSlideshowAnimate} />
|
||||
</Field>
|
||||
<Field label={$t('slideshow_animate_zoom_strength')}>
|
||||
<NumberInput bind:value={tempSlideshowAnimateZoomStrength} min={1} max={100} disabled={!tempSlideshowAnimate} />
|
||||
</Field>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@ function createSlideshowStore() {
|
|||
|
||||
const showProgressBar = persisted<boolean>('slideshow-show-progressbar', true);
|
||||
const slideshowAnimate = persisted<boolean>('slideshow-animate', false);
|
||||
const slideshowAnimatePanStrength = persisted<number>('slideshow-animate-pan-strength', 50, {});
|
||||
const slideshowAnimateZoomStrength = persisted<number>('slideshow-animate-zoom-strength', 50, {});
|
||||
const slideshowDelay = persisted<number>('slideshow-delay', 5, {});
|
||||
const slideshowTransition = persisted<boolean>('slideshow-transition', true);
|
||||
|
|
@ -93,7 +92,6 @@ function createSlideshowStore() {
|
|||
slideshowShowMetadataOverlay,
|
||||
slideshowMetadataOverlayMode,
|
||||
slideshowAnimate,
|
||||
slideshowAnimatePanStrength,
|
||||
slideshowAnimateZoomStrength,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue