diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index b1fdef386..029693651 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -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() diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 69657525c..1435bba48 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -1,7 +1,6 @@