Skip to content

The ionInfiniteScroll directive is looping on ios #2694

@pixnlove

Description

@pixnlove

Hello,

When I'm launching my Ionic app on Safari mobile, the infinite scroll function is looping when i'm returning to the specific view. You can see the error :

capture d ecran 2014-12-09 a 17 33 13

In my template, after the ion-list markup :
<ion-infinite-scroll on-infinite="loadMore()" distance="1%"> </ion-infinite-scroll>

In my controller :

    $scope.items = [];
    $scope.loadMore = function() {
        $http.get('/api/list.json').success(function(data) {
            var i = 0;
            data.items.forEach(function(item){
                i++;
                $scope.items.push(item);
            });
            $scope.$broadcast('scroll.infiniteScrollComplete');
        });
    };

This error occurs only on iphone 5 (v8.1.1) default browser (Safari) but not in Chrome.
For information, i'm working with the latest version of Ionic : 1.0.0-beta.13.
Thanks for your help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions