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

bug: ion-infinite-scroll stops working when scroll page quickly #4980

Closed
freiserg opened this issue Jan 15, 2016 · 4 comments
Closed

bug: ion-infinite-scroll stops working when scroll page quickly #4980

freiserg opened this issue Jan 15, 2016 · 4 comments
Labels
needs: reply the issue needs a response from the user

Comments

@freiserg
Copy link

Type: bug

Platform: ios 8 webview

if the user scrolls page quickly, this error `$digest already in progress` in ionic 1.2.4

How I understood this problem in this code:

$scope.$parent && $scope.$parent.$apply($attrs.onInfinite || '');
https://github.com/driftyco/ionic/blob/master/js/angular/controller/infiniteScrollController.js#L38

I will use $applyAsync instead $apply.

@freiserg freiserg changed the title bug: ion-infinite-scroll stops working bug: ion-infinite-scroll stops working when scroll page quickly Jan 15, 2016
@worm-emoji
Copy link

+1. This bug was 'fixed' somehow with native scrolling (so it wasn't in previous releases) and now it's back due to the switch to JS scrolling again.

@Swamii
Copy link

Swamii commented Feb 3, 2016

Wrapping the infinite-scroll complete event in $timeout seems to fix it for me. Not sure if it always works, might be a timing issue.

$timeout(function() {
    $scope.$broadcast('scroll.infiniteScrollComplete');
});

@jgw96
Copy link
Contributor

jgw96 commented Sep 30, 2016

Hello all! Is this still an issue with the latest version of Ionic 1?

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Sep 30, 2016
@jgw96
Copy link
Contributor

jgw96 commented Oct 3, 2016

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Oct 3, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: reply the issue needs a response from the user
Projects
None yet
Development

No branches or pull requests

4 participants