# Pull to refresh + infinite scroll issue

**URL:** <https://forum.ionicframework.com/t/pull-to-refresh-infinite-scroll-issue/6814>\
**Category:** ionic-v1\
**Created:** [July 14, 2014, 12:36pm UTC](https://forum.ionicframework.com/t/pull-to-refresh-infinite-scroll-issue/6814 "2014-07-14T12:36:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NairoQuintana](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@NairoQuintana](https://forum.ionicframework.com/u/NairoQuintana)\
**Post date:** [July 14, 2014, 12:36pm UTC](https://forum.ionicframework.com/t/pull-to-refresh-infinite-scroll-issue/6814/1 "2014-07-14T12:36:06Z")

</div>

Hi guys

When I try to implement an infinite scroll together with a pull to refresh, I get a weird positioning error.  
I defined a loadMore function, but when I call it through the refresher, the list only takes about half the screen.

![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/1213/86b1472453d0b97a.png)

When I call the exact same function from a button instead of the refresher, everything works fine.

![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/1214/afc33987e4fd5347.png)

I’m not able to reproduce the problem in a codepen, so maybe it has something to do with the servercall ?

This is the function I call:

```
        $scope.search = true;
        teller = 0;
        $scope.labrequests = [];
        $scope.loadMore();
        $scope.$broadcast('scroll.refreshComplete');

```

And in the loadMore I do a servercall and add those results to the array.

So, this gives the error:

```
<ion-refresher pulling-text="Trek om te vernieuwen" on-refresh="checkQuery()"></ion-refresher>

```

And this works fine:

```
<button ng-click="checkQuery()" class="button button-stable">

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![NairoQuintana](https://avatars.discourse-cdn.com/v4/letter/n/b5ac83/32.png) [@NairoQuintana](https://forum.ionicframework.com/u/NairoQuintana)\
**Post date:** [July 16, 2014, 12:10pm UTC](https://forum.ionicframework.com/t/pull-to-refresh-infinite-scroll-issue/6814/2 "2014-07-16T12:10:05Z")

</div>

No one ? Can’t figure it out.

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [July 16, 2014, 12:18pm UTC](https://forum.ionicframework.com/t/pull-to-refresh-infinite-scroll-issue/6814/3 "2014-07-16T12:18:26Z")

</div>

A codepen would be nice.

Maybe if you do a refresh the infinite scroll is also called -\> and the responses are overwriting each other.

aaaannnnd so on.
