Prevent 'mark read on scroll' during fetches
FREEBIE
This commit is contained in:
parent
5194b8816e
commit
944ae296eb
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
onLazyScroll: function() {
|
onLazyScroll: function() {
|
||||||
if (!this.isHidden() && window.isFocused()) {
|
// The in-progress fetch check is important, because while that happens, lots
|
||||||
|
// of messages are added to the DOM, one by one, changing window size and
|
||||||
|
// generating scroll events.
|
||||||
|
if (!this.isHidden() && window.isFocused() && !this.inProgressFetch) {
|
||||||
this.markRead();
|
this.markRead();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue