forked from mystiq/hydrogen-web
scroll to bottom when loading timeline
This commit is contained in:
parent
a1c23f715a
commit
2131329442
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ export default class TimelineList extends ListView {
|
|||
this._atBottom = false;
|
||||
}
|
||||
|
||||
_loadList() {
|
||||
super._loadList();
|
||||
const root = this.root();
|
||||
root.scrollTop = root.scrollHeight;
|
||||
}
|
||||
|
||||
onBeforeListChanged() {
|
||||
const root = this.root();
|
||||
const fromBottom = root.scrollHeight - root.scrollTop - root.clientHeight;
|
||||
|
|
Loading…
Reference in a new issue