Fix mark_read at bottom scrolling
This commit is contained in:
parent
c71b0b46d8
commit
502944f2ad
|
@ -62,7 +62,7 @@
|
|||
},
|
||||
handleScroll() {
|
||||
// let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.offsetHeight;
|
||||
let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === this.$el.offsetHeight + document.documentElement.offsetHeight + 12
|
||||
let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight >= this.$el.offsetHeight + document.documentElement.offsetHeight
|
||||
if (bottomOfWindow) {
|
||||
this.$store.dispatch('bottomReached')
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user