fine tunning of the infinite scroll triggers

This commit is contained in:
Nicolas Constant 2018-11-03 14:28:28 -04:00
parent 773d4f8453
commit 2ffad41ea6
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export class StreamComponent implements OnInit {
onScroll() {
var element = this.statustream.nativeElement as HTMLElement;
const atBottom = element.scrollHeight <= element.clientHeight + element.scrollTop + 500;
const atBottom = element.scrollHeight <= element.clientHeight + element.scrollTop + 1000;
const atTop = element.scrollTop === 0;
this.streamPositionnedAtTop = false;

View File

@ -10,7 +10,7 @@ import { stat } from "fs";
@Injectable()
export class StreamingService {
public readonly nbStatusPerIteration :number = 30;
public readonly nbStatusPerIteration :number = 20;
constructor(
private readonly mastodonService: MastodonService) { }