1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-27 22:22:45 +01:00

feat(web): Swipe down shows slideshow controlbar on mobile ()

Swipe down show slideshow controlbar on mobile
This commit is contained in:
Mattia Natali 2025-01-04 19:18:05 +01:00 committed by GitHub
parent fcd372238f
commit d29bdd6308
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,7 @@
import { SlideshowNavigation, slideshowStore } from '$lib/stores/slideshow.store';
import { mdiChevronLeft, mdiChevronRight, mdiClose, mdiCog, mdiFullscreen, mdiPause, mdiPlay } from '@mdi/js';
import { onDestroy, onMount } from 'svelte';
import { swipe } from 'svelte-gestures';
import { t } from 'svelte-i18n';
import { fly } from 'svelte/transition';
@ -108,6 +109,8 @@
]}
/>
<svelte:body use:swipe on:swipedown={showControlBar} />
{#if showControls}
<div
class="m-4 flex gap-2"