fixes
This commit is contained in:
parent
4a3c5fade9
commit
e128e21315
2 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue