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
|
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()
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue