Fix: Don't scroll to last seen indicator on focus
FREEBIE
This commit is contained in:
parent
10c2874d19
commit
c3dc9732ef
1 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@
|
||||||
|
|
||||||
var onFocus = function() {
|
var onFocus = function() {
|
||||||
if (this.$el.css('display') !== 'none') {
|
if (this.$el.css('display') !== 'none') {
|
||||||
this.updateUnread();
|
this.updateUnread({scroll: false});
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
this.window.addEventListener('focus', onFocus);
|
this.window.addEventListener('focus', onFocus);
|
||||||
|
@ -206,8 +206,8 @@
|
||||||
this.$('.bottom-bar form').addClass('active');
|
this.$('.bottom-bar form').addClass('active');
|
||||||
},
|
},
|
||||||
|
|
||||||
updateUnread: function() {
|
updateUnread: function(options) {
|
||||||
this.updateLastSeenIndicator();
|
this.updateLastSeenIndicator(options);
|
||||||
this.model.markRead();
|
this.model.markRead();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue