This commit is contained in:
Henry Jameson 2026-08-24 19:37:48 +03:00
commit e128e21315
2 changed files with 1 additions and 2 deletions

View file

@ -235,11 +235,11 @@ const Timeline = {
this.virtualScrollIndex = approxIndex this.virtualScrollIndex = approxIndex
}, },
scrollLoad() { scrollLoad() {
// TODO simplify this logic
const bodyBRect = document.body.getBoundingClientRect() const bodyBRect = document.body.getBoundingClientRect()
const height = Math.max(bodyBRect.height, -bodyBRect.y) const height = Math.max(bodyBRect.height, -bodyBRect.y)
if ( if (
!this.timeline.fetcher.loadingOlder.value && !this.timeline.fetcher.loadingOlder.value &&
this.$el.offsetHeight > 0 &&
window.innerHeight + window.pageYOffset >= height - 750 window.innerHeight + window.pageYOffset >= height - 750
) { ) {
this.fetchOlderStatuses() this.fetchOlderStatuses()

View file

@ -1,7 +1,6 @@
<template> <template>
<!-- there is a brief moment during logout when old timeline gets forcibly deactivated --> <!-- there is a brief moment during logout when old timeline gets forcibly deactivated -->
<div v-if="timeline.fetcher" :class="['Timeline', classes.root]"> <div v-if="timeline.fetcher" :class="['Timeline', classes.root]">
{{ timelineRef }}
<div <div
v-if="!embedded" v-if="!embedded"
:class="classes.header" :class="classes.header"