generated from dave/wails-template
Enable scroll through time with mousewheel
This commit is contained in:
@@ -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 /> -->
|
||||
|
Reference in New Issue
Block a user