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
},
scrollLoad() {
// TODO simplify this logic
const bodyBRect = document.body.getBoundingClientRect()
const height = Math.max(bodyBRect.height, -bodyBRect.y)
if (
!this.timeline.fetcher.loadingOlder.value &&
this.$el.offsetHeight > 0 &&
window.innerHeight + window.pageYOffset >= height - 750
) {
this.fetchOlderStatuses()

View file

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