generated from dave/wails-template
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
123b2961a2 | |||
f1c8c394c9 |
@@ -20,9 +20,9 @@
|
|||||||
}
|
}
|
||||||
function scroll(event: WheelEvent) {
|
function scroll(event: WheelEvent) {
|
||||||
if (event.deltaY < 0) {
|
if (event.deltaY < 0) {
|
||||||
scrollingTimeFrameStore.next();
|
|
||||||
} else {
|
|
||||||
scrollingTimeFrameStore.prev();
|
scrollingTimeFrameStore.prev();
|
||||||
|
} else {
|
||||||
|
scrollingTimeFrameStore.next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -4,6 +4,8 @@ import { type Writable, writable } from "svelte/store";
|
|||||||
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
|
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
|
||||||
const thism = new Date();
|
const thism = new Date();
|
||||||
const lastm = new Date();
|
const lastm = new Date();
|
||||||
|
thism.setDate(1);
|
||||||
|
lastm.setDate(1);
|
||||||
thism.setMonth(thism.getMonth() - 1);
|
thism.setMonth(thism.getMonth() - 1);
|
||||||
lastm.setMonth(lastm.getMonth() - 2);
|
lastm.setMonth(lastm.getMonth() - 2);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user