fixes
This commit is contained in:
parent
05824010ed
commit
5d1f3c1cee
4 changed files with 7 additions and 4 deletions
|
|
@ -37,7 +37,9 @@ export function useConversation(statusId, expanded) {
|
|||
|
||||
watch(mainStatus, (newStatus, oldStatus) => {
|
||||
if (newStatus) setFocused(newStatus.id)
|
||||
fetchConversation()
|
||||
if (newStatus.id !== oldStatus.id) {
|
||||
fetchConversation()
|
||||
}
|
||||
})
|
||||
|
||||
watch(expanded, (value) => {
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ export function useVirtualScrolling({
|
|||
console.log('COMPENSATE', oldVal, newVal, topScrollBoundary.value)
|
||||
const oldVisible = oldVal.filter((item) => checkVisible(item))
|
||||
const oldItem = first(oldVisible)
|
||||
if (!oldItem) return 0 // probably out of bounds in timeline
|
||||
const oldItemUpdated = newVal.find(({ id }) => id === oldItem.id)
|
||||
console.log('OLD', oldItem, oldItemUpdated)
|
||||
if (!oldItemUpdated) return 0 // context change?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue