diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts index dc65835c..1587a7bd 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/messages.component.ts @@ -484,7 +484,7 @@ export class MessagesComponent implements OnInit, OnDestroy { gotoPosition(eventSeq: number) { if (!!this.virtualScroller) { const e = this.eventList.find(v => v.seq === eventSeq); - this.virtualScroller.scrollInto(e, false, undefined, 0, () => {}); + this.virtualScroller.scrollInto(e, true, 0, 0, () => {}); } }