From e83fb7abb8b21c87fc4f936d70bbdcc644e446fa Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Mon, 19 Aug 2024 14:40:24 +0200 Subject: [PATCH] Enable scroll through time with mousewheel --- frontend/src/App.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 40ad437..66f2bd4 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -18,9 +18,16 @@ scrollingTimeFrameStore.next(); } } + function scroll(event: WheelEvent) { + if (event.deltaY < 0) { + scrollingTimeFrameStore.next(); + } else { + scrollingTimeFrameStore.prev(); + } + } - +