fix virtual scrolling
This commit is contained in:
parent
3b668c7915
commit
a8166dff96
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ const Timeline = {
|
||||||
const statusesPerSide = Math.ceil(Math.max(3, window.innerHeight / 80))
|
const statusesPerSide = Math.ceil(Math.max(3, window.innerHeight / 80))
|
||||||
const min = Math.max(0, this.virtualScrollIndex - statusesPerSide)
|
const min = Math.max(0, this.virtualScrollIndex - statusesPerSide)
|
||||||
const max = Math.min(amount, this.virtualScrollIndex + statusesPerSide)
|
const max = Math.min(amount, this.virtualScrollIndex + statusesPerSide)
|
||||||
return new Set(this.timeline.order.slice(min, max))
|
return new Set(this.filteredVisibleStatuses.slice(min, max).map(({id}) => id))
|
||||||
},
|
},
|
||||||
virtualScrollingEnabled() {
|
virtualScrollingEnabled() {
|
||||||
return useMergedConfigStore().mergedConfig.virtualScrolling
|
return useMergedConfigStore().mergedConfig.virtualScrolling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue