aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorcsaurus <csaurus@mailbox.org>2018-04-22 16:12:34 -0400
committercsaurus <csaurus@mailbox.org>2018-04-22 16:12:34 -0400
commit59f98aecd99cbc1eadf93a52409049c04e571c58 (patch)
treefd77bab76f8176dc13bb11665ec12417b3b30c2e /src/components/timeline/timeline.js
parentb6eb1b1d98c839f5340edd3d3c4764952f2cb189 (diff)
Stop blink from loading more statuses with every scroll.
Diffstat (limited to 'src/components/timeline/timeline.js')
-rw-r--r--src/components/timeline/timeline.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 74ab85d3..674352a5 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -105,7 +105,8 @@ const Timeline = {
.then((friends) => this.$store.dispatch('addFriends', { friends }))
},
scrollLoad (e) {
- const height = Math.max(document.body.offsetHeight, document.body.scrollHeight)
+ const bodyBRect = document.body.getBoundingClientRect();
+ const height = Math.max(bodyBRect.height, -(bodyBRect.y))
if (this.timeline.loading === false &&
this.$store.state.config.autoLoad &&
this.$el.offsetHeight > 0 &&