# Infinite scroll not scrolling

**URL:** <https://forum.ionicframework.com/t/infinite-scroll-not-scrolling/156086>\
**Category:** ionic-v3\
**Created:** [February 12, 2019, 11:58am UTC](https://forum.ionicframework.com/t/infinite-scroll-not-scrolling/156086 "2019-02-12T11:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IreneC](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@IreneC](https://forum.ionicframework.com/u/IreneC)\
**Post date:** [February 12, 2019, 11:58am UTC](https://forum.ionicframework.com/t/infinite-scroll-not-scrolling/156086/1 "2019-02-12T11:58:04Z")

</div>

Hi everyone,

I am working with the component infinite scroll and sometimes it doesn’t work (don’t appear and scroll) when I know there are more results to show.

What can be happening?

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![Lucas098](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@Lucas098](https://forum.ionicframework.com/u/Lucas098)\
**Post date:** [February 12, 2019, 12:19pm UTC](https://forum.ionicframework.com/t/infinite-scroll-not-scrolling/156086/2 "2019-02-12T12:19:49Z")

</div>

Does the console show any errors?

in your .ts should add this

doInfinite(infiniteScroll) {  
this.page++;  
this.infiniteScroll = infiniteScroll;  
this.carregarFilmes(true); // your function for  
load more itens  
}

in your .html should add this

\<ion-infinite-scroll (ionInfinite)=“doInfinite($event)”\>

\<ion-infinite-scroll-content\>\</ion-infinite-scroll-content\>

\</ion-infinite-scroll\>

within its function of loading items, you must put another to display the loading image and when you load the items, you call another function to close the loading.

---

<div class="post-metadata">

**Author:** ![IreneC](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@IreneC](https://forum.ionicframework.com/u/IreneC)\
**Post date:** [February 12, 2019, 2:45pm UTC](https://forum.ionicframework.com/t/infinite-scroll-not-scrolling/156086/3 "2019-02-12T14:45:04Z")

</div>

Thank you so much for your response Lucas098.

In my .ts I have something like this:

```auto
infiniteScrollLoadingData(infiniteScroll: InfiniteScroll) {
    if (this.list.length >= this.resultsNumber) {
      infiniteScroll.enable(false);
    } else {
      this.queryProvider.query(this.navParams.data.criteria, false).subscribe(
        (response: any) => {
          response.extractList.forEach((element) => {
            this.list.push(element);
          });
          this.navParams.data.criteria.page = this.navParams.data.criteria.page + 1;
          this.content.resize();
          infiniteScroll.complete();
        },
        (error) => {
          console.log("Error! -->", error);
        }
      );
    }
  }

```

And my .html is something like this:

```auto
<ion-infinite-scroll (ionInfinite)="infiniteScrollLoadingData($event)" threshold="5%">
  <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="{{'app.loadingData' | translate}}"></ion-infinite-scroll-content>
</ion-infinite-scroll>

```

The infinite scroll is inside an ion-content after an ion-grid.

The problem is that sometimes the page does not recognize the infinite scroll. I also have to say that the page have its own scroll and this infinite scroll.

Thank you so much.
