forked from AkkomaGang/akkoma-fe
Merge branch '415-timeline' into 'develop'
Fix timeline updating bug when scrolled down Closes #415 See merge request pleroma/pleroma-fe!644
This commit is contained in:
commit
82cd1252b5
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ const Timeline = {
|
||||||
}
|
}
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
// only 'stream' them when you're scrolled to the top
|
// only 'stream' them when you're scrolled to the top
|
||||||
if (window.pageYOffset < 15 &&
|
const doc = document.documentElement
|
||||||
|
const top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)
|
||||||
|
if (top < 15 &&
|
||||||
!this.paused &&
|
!this.paused &&
|
||||||
!(this.unfocused && this.$store.state.config.pauseOnUnfocused)
|
!(this.unfocused && this.$store.state.config.pauseOnUnfocused)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue