diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.ts b/frontend/src/app/components/transactions-list/transactions-list.component.ts index cce2cee20..ed536f106 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.ts +++ b/frontend/src/app/components/transactions-list/transactions-list.component.ts @@ -74,7 +74,14 @@ export class TransactionsListComponent implements OnInit, OnChanges { } onScroll() { - this.loadMore.emit(); + const scrollHeight = document.body.scrollHeight; + const scrollTop = document.documentElement.scrollTop; + if(scrollHeight > 0){ + const percentageScrolled = scrollTop * 100 / scrollHeight; + if(percentageScrolled > 90){ + this.loadMore.emit(); + } + } } getTotalTxOutput(tx: Transaction) {