Skip to content
Snippets Groups Projects
Commit 67452923 authored by Shpuld Shpuldson's avatar Shpuld Shpuldson
Browse files

Hotfix for firefox to prevent loading on every scroll event.

parent 65646c5a
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,8 @@ const Timeline = {
}).then(() => store.commit('setLoading', { timeline: this.timelineName, value: false }))
},
scrollLoad (e) {
if (this.timeline.loading === false && this.$store.state.config.autoLoad && (window.innerHeight + window.pageYOffset) >= (document.body.scrollHeight - 750)) {
let height = Math.max(document.body.offsetHeight, document.body.scrollHeight)
if (this.timeline.loading === false && this.$store.state.config.autoLoad && (window.innerHeight + window.pageYOffset) >= (height - 750)) {
this.fetchOlderStatuses()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment