vs is modified

This commit is contained in:
richard-loafle 2020-01-29 17:45:38 +09:00
parent b0f7a90f3d
commit 9f9362c4bb
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,8 @@
perfectScrollbar
fxFlexFill
#psChatContent
[bufferAmount]="10"
[bufferAmount]="5"
[compareItems]=""
(psScrollUp)="onScrollup($event)"
(psYReachStart)="onYReachStart($event)"
(psYReachEnd)="onYReachEnd($event)"

View File

@ -607,4 +607,10 @@ export class MessagesComponent implements OnInit, OnDestroy {
trackByEvent(index: number, info: Info<EventJson>): number {
return info.seq;
}
compareItemsFunc = (
item1: Info<EventJson>,
item2: Info<EventJson>
// tslint:disable-next-line: semicolon
): boolean => item1.seq === item2.seq;
}