diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/lib/gallery/GalleryPage.svelte | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/lib/gallery/GalleryPage.svelte b/frontend/src/lib/gallery/GalleryPage.svelte index cca8ff3..13bbfc8 100644 --- a/frontend/src/lib/gallery/GalleryPage.svelte +++ b/frontend/src/lib/gallery/GalleryPage.svelte @@ -27,7 +27,7 @@ } }); - function press(event: MouseEvent | KeyboardEvent) { + function onclick(event: MouseEvent | KeyboardEvent) { if (event instanceof KeyboardEvent && event.key !== 'Enter') { return; } @@ -57,8 +57,8 @@ role="button" tabindex="0" class="{span} relative overflow-hidden rounded-sm focus-visible:outline-4 focus-visible:outline-blue-600" - onclick={press} - onkeydown={press} + {onclick} + onkeydown={onclick} > <SelectionOverlay position="top" {selected} /> <img |