Skip to content

Commit 6e359dc

Browse files
committed
feat: Scroll message list to bottom if container shrinks
1 parent da66348 commit 6e359dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/stream-chat-angular/src/lib/message-list/message-list.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,7 @@ export class MessageListComponent
213213
this.containerHeight = this.scrollContainer.nativeElement.scrollHeight;
214214
this.olderMassagesLoaded = false;
215215
} else if (
216-
this.containerHeight !== undefined &&
217-
this.containerHeight <
218-
this.scrollContainer.nativeElement.scrollHeight &&
216+
this.getScrollPosition() !== 'bottom' &&
219217
!this.isUserScrolled
220218
) {
221219
this.isLatestMessageInList

0 commit comments

Comments
 (0)