fix(ui): account mentions not being fetched when visible (#2624)
parent
6f20ce5bba
commit
fc5d248094
|
@ -21,7 +21,7 @@ const account = ref<mastodon.v1.Account | null | undefined>(props.account)
|
||||||
useIntersectionObserver(
|
useIntersectionObserver(
|
||||||
hoverCard,
|
hoverCard,
|
||||||
([{ intersectionRatio }]) => {
|
([{ intersectionRatio }]) => {
|
||||||
targetIsVisible.value = intersectionRatio <= 0.75
|
targetIsVisible.value = intersectionRatio > 0.1
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
watch(
|
watch(
|
||||||
|
@ -32,7 +32,7 @@ watch(
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!newVisible)
|
if (!newVisible || process.test)
|
||||||
return
|
return
|
||||||
|
|
||||||
if (newHandle) {
|
if (newHandle) {
|
||||||
|
|
Loading…
Reference in New Issue