Fix mark_read at bottom scrolling

This commit is contained in:
Peter Stuifzand 2018-12-29 21:46:25 +01:00
parent c71b0b46d8
commit 502944f2ad

View File

@ -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