Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ionInfiniteScroll directive is looping on ios #2694

Closed
pixnlove opened this issue Dec 9, 2014 · 5 comments
Closed

The ionInfiniteScroll directive is looping on ios #2694

pixnlove opened this issue Dec 9, 2014 · 5 comments
Assignees
Milestone

Comments

@pixnlove
Copy link

pixnlove commented Dec 9, 2014

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.

@adamdbradley
Copy link
Contributor

And this is with beta13, and not the latest nightly builds that are in master?

@pixnlove
Copy link
Author

I tried with your latest build, but the error is still there on iphone 5 with version 8.1.1 and 8.1.2(12B440) but not on iphone 6 with version 8.1.2(12B440).
My Bower file looks like :

{
  "name": "mobile-app",
  "private": "true",
  "dependencies": {
    "angular-http-auth": "~1.2.1",
    "fontawesome": "~4.2.0",
    "ionic": "git://github.com/driftyco/ionic.git#f2705c637616ec08a3e4164174167797b8f499a4",
    "angular-resource": "~1.3.0",
    "underscore": "~1.7.0"
  }
}

@adamdbradley adamdbradley added this to the 1.0.0-rc0 milestone Feb 16, 2015
@ajoslin ajoslin assigned perrygovier and unassigned ajoslin Feb 23, 2015
@perrygovier
Copy link
Contributor

@pixnlove, it sounds like a race condition. Are there any $watches or other broadcasts going on in the app? I'm having trouble reproducing the error.

@perrygovier perrygovier added needs: reply the issue needs a response from the user scroll labels Feb 23, 2015
@perrygovier perrygovier modified the milestones: 1.0.0-rc1, 1.0.0-rc0 Mar 6, 2015
@perrygovier perrygovier modified the milestones: 1.0.0-rc2, 1.0.0-rc1 Mar 20, 2015
@felquis
Copy link

felquis commented Mar 23, 2015

@pixnlove
Copy link
Author

This is the same problem I have reproduced a few weeks ago. Thanks for the help and sorry for the late response.

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Mar 23, 2015
@Fayozjon
Copy link

Hugo

http://sweetsland.by/frontstocks_optionbit

23.03.2015, 21:27, "Hugo Fargues" [email protected]:This is the same problem I have reproduced a few weeks ago. Thanks for the help and sorry for the late response.

—Reply to this email directly or .

@perrygovier perrygovier modified the milestones: 1.0.0-rc2, 1.0.0-rc3 Mar 30, 2015
@adamdbradley adamdbradley modified the milestones: 1.0.0-rc3, 1.0.0-rc4 Apr 13, 2015
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants