Wait for scroll before deciding whether to add scroll down button
FREEBIE
This commit is contained in:
parent
ae7044fd30
commit
bb468e7b01
1 changed files with 7 additions and 3 deletions
|
@ -278,9 +278,13 @@
|
||||||
unreadEl.insertBefore(this.$('#' + oldestUnread.get('id')));
|
unreadEl.insertBefore(this.$('#' + oldestUnread.get('id')));
|
||||||
var position = unreadEl[0].scrollIntoView(true);
|
var position = unreadEl[0].scrollIntoView(true);
|
||||||
|
|
||||||
if (this.view.bottomOffset > 0) {
|
// scrollIntoView is an async operation, but we have no way to listen for
|
||||||
this.addScrollDownButtonWithCount(unreadCount);
|
// completion of the resultant scroll.
|
||||||
}
|
setTimeout(function() {
|
||||||
|
if (this.view.bottomOffset > 0) {
|
||||||
|
this.addScrollDownButtonWithCount(unreadCount);
|
||||||
|
}
|
||||||
|
}.bind(this), 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue