2 Commits

Author SHA1 Message Date
123b2961a2 Reverse mouse scroll direction
I found myself scrolling in the wrong direction... This should help
2024-08-31 12:10:57 +02:00
f1c8c394c9 Default scrolling payment date to first of month 2024-08-31 11:59:57 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -20,9 +20,9 @@
}
function scroll(event: WheelEvent) {
if (event.deltaY < 0) {
scrollingTimeFrameStore.next();
} else {
scrollingTimeFrameStore.prev();
} else {
scrollingTimeFrameStore.next();
}
}
</script>

View File

@@ -4,6 +4,8 @@ import { type Writable, writable } from "svelte/store";
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
const thism = new Date();
const lastm = new Date();
thism.setDate(1);
lastm.setDate(1);
thism.setMonth(thism.getMonth() - 1);
lastm.setMonth(lastm.getMonth() - 2);