# Infinite scroll position not working

**URL:** <https://forum.ionicframework.com/t/infinite-scroll-position-not-working/144470>\
**Category:** Ionic Framework\
**Created:** [October 13, 2018, 4:30pm UTC](https://forum.ionicframework.com/t/infinite-scroll-position-not-working/144470 "2018-10-13T16:30:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliverandersen](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@oliverandersen](https://forum.ionicframework.com/u/oliverandersen)\
**Post date:** [October 13, 2018, 4:30pm UTC](https://forum.ionicframework.com/t/infinite-scroll-position-not-working/144470/1 "2018-10-13T16:30:02Z")

</div>

I am using the infinite scroll in Ionic 4 component to make the chat page. It works fine , except it never detects the scroll upwards as it should do:

```auto
<ion-infinite-scroll threshold="100px" position="top" (ionInfinite)="loadMoreMessages($event)">
      <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data...">
      </ion-infinite-scroll-content>
    </ion-infinite-scroll>

```

It always starts the loadMoreMessages function when i scroll to the bottom. I have placed the code for the component at the top, as well as setting the position attribute as ‘top’ - nothing works.

---

<div class="post-metadata">

**Author:** ![DarkYoda](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@DarkYoda](https://forum.ionicframework.com/u/DarkYoda)\
**Post date:** [December 10, 2019, 3:43pm UTC](https://forum.ionicframework.com/t/infinite-scroll-position-not-working/144470/2 "2019-12-10T15:43:45Z")

</div>

I’m facing same issue, did you find a workaround?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:13pm UTC](https://forum.ionicframework.com/t/infinite-scroll-position-not-working/144470/3 "2021-07-19T21:13:22Z")

</div>

Closed on July 19, 2021, 9:13pm UTC


