From b3e36fdd995d1388d5d4e9ec52a0f4c7f0bdbd62 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Thu, 23 Mar 2023 17:23:32 +0900 Subject: [PATCH] Hotfix infinite scroll (need to apply a real fix) --- .../transactions-list/transactions-list.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f499300c1..b71046f68 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.ts +++ b/frontend/src/app/components/transactions-list/transactions-list.component.ts @@ -184,9 +184,9 @@ export class TransactionsListComponent implements OnInit, OnChanges { onScroll(): void { const scrollHeight = document.body.scrollHeight; const scrollTop = document.documentElement.scrollTop; - if (scrollHeight > 0){ + if (scrollHeight > 0) { const percentageScrolled = scrollTop * 100 / scrollHeight; - if (percentageScrolled > 70){ + if (percentageScrolled > 50) { this.loadMore.emit(); } }