fix: isTop check causing timeline to load & refresh prematurely

This commit is contained in:
freeplay 2023-07-17 18:58:02 -04:00
parent 3eb7ccc303
commit 780f00c596

View file

@ -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