fix: isTop check causing timeline to load & refresh prematurely
This commit is contained in:
parent
3eb7ccc303
commit
780f00c596
1 changed files with 1 additions and 3 deletions
|
@ -385,9 +385,7 @@ const prepend = (item: Item): void => {
|
|||
}
|
||||
|
||||
const isTop =
|
||||
isBackTop.value ||
|
||||
(document.body.contains(rootEl.value) &&
|
||||
isTopVisible(rootEl.value));
|
||||
document.body.contains(rootEl.value) && ( isBackTop.value || isTopVisible(rootEl.value) );
|
||||
|
||||
if (isTop) {
|
||||
// Prepend the item
|
||||
|
|
Loading…
Reference in a new issue