Formatted some function names

This commit is contained in:
Alexis
2024-08-20 17:34:34 +02:00
parent c84099fa54
commit fe98b770e1
4 changed files with 46 additions and 46 deletions

View File

@@ -2,7 +2,7 @@
import { useCalendar } from '@/stores/CalendarStore'
import { useThrottleFn } from '@vueuse/core'
const { decrementYear, incrementYear } = useCalendar()
const { decrementViewYear, incrementViewYear } = useCalendar()
const { sortedMonths: months } = storeToRefs(useCalendar())
function handleWheel(e: WheelEvent) {
@@ -15,11 +15,11 @@ function handleWheel(e: WheelEvent) {
}
const moveCalendarLeft = useThrottleFn(() => {
decrementYear()
decrementViewYear()
}, 100)
const moveCalendarRight = useThrottleFn(() => {
incrementYear()
incrementViewYear()
}, 100)
</script>