Skip to content
Snippets Groups Projects
Commit 59f98aec authored by csaurus's avatar csaurus
Browse files

Stop blink from loading more statuses with every scroll.

parent b6eb1b1d
Branches
Tags
No related merge requests found
......@@ -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 &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment