Anchor scroll to bottom when switching channels.

This commit is contained in:
Paul
2021-08-08 23:01:47 +01:00
parent 8cb02d6d34
commit c8b5753211
3 changed files with 19 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ export class ChannelRenderer {
stale = false;
fetching = false;
scrollPosition = 0;
scrollAnchored = false;
constructor(channel: Channel) {
this.channel = channel;
@@ -31,6 +32,7 @@ export class ChannelRenderer {
channel: false,
currentRenderer: false,
scrollPosition: false,
scrollAnchored: false,
});
this.receive = this.receive.bind(this);