mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
scroll to bottom when loading timeline
This commit is contained in:
parent
a1c23f715a
commit
2131329442
@ -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 New Issue
Block a user