Enable scroll through time with mousewheel

This commit is contained in:
2024-08-19 14:40:24 +02:00
parent 3ca12139cd
commit e83fb7abb8

View File

@@ -18,9 +18,16 @@
scrollingTimeFrameStore.next();
}
}
function scroll(event: WheelEvent) {
if (event.deltaY < 0) {
scrollingTimeFrameStore.next();
} else {
scrollingTimeFrameStore.prev();
}
}
</script>
<svelte:window on:keydown={keyDown} />
<svelte:window on:keydown={keyDown} on:wheel={scroll} />
<Toaster theme="dark" expand visibleToasts={9} />
<template>
<!-- <Header /> -->