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 (#15080)
Swipe down show slideshow controlbar on mobile
This commit is contained in:
parent
fcd372238f
commit
d29bdd6308
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue