Add swipe gesture on photo Viewer

This commit is contained in:
2021-11-22 23:21:51 +01:00
parent ac8c49d954
commit ded276b8a0
5 changed files with 131 additions and 5 deletions

10
src/global.d.ts vendored
View File

@@ -1 +1,11 @@
/// <reference types="@sveltejs/kit" />
/**
* Custom Events
*/
// Swipe
declare namespace svelte.JSX {
interface HTMLAttributes<T> {
onswipe?: (event: CustomEvent<string> & { target: EventTarget & T }) => any
}
}