forked from AkkomaGang/akkoma-fe
Hotfix for firefox to prevent loading on every scroll event.
This commit is contained in:
parent
65646c5a12
commit
67452923a5
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue