even more shenanigans
This commit is contained in:
parent
d622a61fd1
commit
5bd9a44c2c
2 changed files with 4 additions and 3 deletions
|
|
@ -151,10 +151,11 @@ export default {
|
|||
watch(expanded, async (value) => {
|
||||
if (value) {
|
||||
await fetchConversation()
|
||||
await tryScrollTo(currentStatus.value.id)
|
||||
} else {
|
||||
resetDisplayState()
|
||||
}
|
||||
if (isPage.value) return
|
||||
await tryScrollTo(currentStatus.value.id)
|
||||
}, { flush: 'post' })
|
||||
|
||||
const resetDisplayState = () => {
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ export function useVirtualScrolling(
|
|||
})
|
||||
|
||||
watch(heightChart, async (newVal, oldVal) => {
|
||||
if (scrollInProgress) return
|
||||
if (scrollInProgress.value) return
|
||||
if (!scrollCompensation) return
|
||||
pauseWatchers()
|
||||
const getAnchoredEl = (list) => anchor.value
|
||||
|
|
@ -146,7 +146,7 @@ export function useVirtualScrolling(
|
|||
topScrollBoundary.value += diff
|
||||
bottomScrollBoundary.value += diff
|
||||
await nextTick()
|
||||
window.scrollBy(0, diff)
|
||||
scrollPosition.scrollBy(0, diff)
|
||||
|
||||
updateBoundaries()
|
||||
resumeWatchers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue