fine tunning of the infinite scroll triggers
This commit is contained in:
parent
773d4f8453
commit
2ffad41ea6
|
@ -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;
|
||||
|
|
|
@ -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) { }
|
||||
|
|
Loading…
Reference in New Issue