Major new version #2
@ -177,7 +177,7 @@ const selectedDateRange = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
function updateVisibleWeeks(reason) {
|
function updateVisibleWeeks(reason) {
|
||||||
const buffer = 10
|
const buffer = 4
|
||||||
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
|
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
|
||||||
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
|
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
|
||||||
const endIdx = Math.ceil(
|
const endIdx = Math.ceil(
|
||||||
@ -215,7 +215,7 @@ function updateVisibleWeeks(reason) {
|
|||||||
lastScrollRange = { startVW, endVW }
|
lastScrollRange = { startVW, endVW }
|
||||||
}
|
}
|
||||||
function rebuildVisibleWeeks(reason) {
|
function rebuildVisibleWeeks(reason) {
|
||||||
const buffer = 10
|
const buffer = 4
|
||||||
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
|
const currentScrollTop = viewport.value?.scrollTop ?? scrollTop.value
|
||||||
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
|
const startIdx = Math.floor((currentScrollTop - buffer * rowHeight.value) / rowHeight.value)
|
||||||
const endIdx = Math.ceil(
|
const endIdx = Math.ceil(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user