How InfiniteScroll start scroll top?


#1

I can use InfiniteScroll scroll bottom.
But I want InfiniteScroll that start scroll top.

I tried threshold set “-5px”. But It start scroll bottom…

<ion-infinite-scroll (infinite)="doInfinite($event)" threshold="-5px">

Can I what to do?

thanks.


#2

Someone had solution to this problem ?


#3

So I implemented scratch…

this.scrollID = setInterval(() => {
var flag = true;
if(flag){
if(this.app.getComponent(‘message-content’).getContentDimensions().scrollTop==0){

    }
}

}, 1000);