Prevent 'mark read on scroll' during fetches

FREEBIE
pull/749/head
Scott Nonnenberg 8 years ago
parent 5194b8816e
commit 944ae296eb

@ -208,7 +208,10 @@
},
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();
}
},

Loading…
Cancel
Save