mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +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;
|
this._atBottom = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_loadList() {
|
||||||
|
super._loadList();
|
||||||
|
const root = this.root();
|
||||||
|
root.scrollTop = root.scrollHeight;
|
||||||
|
}
|
||||||
|
|
||||||
onBeforeListChanged() {
|
onBeforeListChanged() {
|
||||||
const root = this.root();
|
const root = this.root();
|
||||||
const fromBottom = root.scrollHeight - root.scrollTop - root.clientHeight;
|
const fromBottom = root.scrollHeight - root.scrollTop - root.clientHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user