diff --git a/src/global.d.ts b/src/global.d.ts index 63908c6..fcdb1bc 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1 +1,11 @@ /// + +/** + * Custom Events + */ +// Swipe +declare namespace svelte.JSX { + interface HTMLAttributes { + onswipe?: (event: CustomEvent & { target: EventTarget & T }) => any + } +} \ No newline at end of file diff --git a/src/routes/[country]/[location]/[photo].svelte b/src/routes/[country]/[location]/[photo].svelte index 39a0892..3dff824 100644 --- a/src/routes/[country]/[location]/[photo].svelte +++ b/src/routes/[country]/[location]/[photo].svelte @@ -1,10 +1,11 @@ - + {#if currentPhoto}