Smaller out of screen buffer for faster renders.

This commit is contained in:
Leo Vasanko 2025-08-25 17:35:20 -06:00
parent c3ba8e1b0c
commit c9f3104e8b

View File

@ -177,7 +177,7 @@ const selectedDateRange = computed(() => {
})
function updateVisibleWeeks(reason) {
const buffer = 10
const buffer = 4
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
const endIdx = Math.ceil(
@ -215,7 +215,7 @@ function updateVisibleWeeks(reason) {
lastScrollRange = { startVW, endVW }
}
function rebuildVisibleWeeks(reason) {
const buffer = 10
const buffer = 4
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
const endIdx = Math.ceil(