Fix infinite scroll transaction list component

This commit is contained in:
nymkappa
2023-03-30 17:07:34 +09:00
parent 5ba2c181b0
commit aba49897f9
2 changed files with 6 additions and 9 deletions

View File

@@ -182,14 +182,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
}
onScroll(): void {
const scrollHeight = document.body.scrollHeight;
const scrollTop = document.documentElement.scrollTop;
if (scrollHeight > 0) {
const percentageScrolled = scrollTop * 100 / scrollHeight;
if (percentageScrolled > 50) {
this.loadMore.emit();
}
}
this.loadMore.emit();
}
haveBlindedOutputValues(tx: Transaction): boolean {