Skip to content

Commit 5129256

Browse files
committed
fix: scrollTop rounding problem causeing inaccuret scroll position calculation
1 parent 66244c4 commit 5129256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class MessageListComponent
319319
) {
320320
position = 'top';
321321
} else if (
322-
Math.round(this.scrollContainer.nativeElement.scrollTop) +
322+
Math.ceil(this.scrollContainer.nativeElement.scrollTop) +
323323
this.scrollContainer.nativeElement.clientHeight >=
324324
this.scrollContainer.nativeElement.scrollHeight
325325
) {

0 commit comments

Comments
 (0)