Hotfix infinite scroll (need to apply a real fix)

This commit is contained in:
nymkappa 2023-03-23 17:23:32 +09:00
parent f8a35a110c
commit b3e36fdd99
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -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();
}
}