Skip to content

Commit

Permalink
fix(infiniteScroll): allow to fire if list does not fill up screen
Browse files Browse the repository at this point in the history
Addresses #1141
  • Loading branch information
ajoslin committed Apr 29, 2014
1 parent 3bcf06f commit e35b95e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/angular/directive/infiniteScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* $scope.$broadcast('scroll.infiniteScrollComplete');
* });
* };
*
*
* $scope.$on('stateChangeSuccess', function() {
* $scope.loadMore();
* });
Expand Down Expand Up @@ -131,10 +131,6 @@ IonicModule
var scrollValues = scrollView.getValues();
var maxScroll = infiniteScrollCtrl.getMaxScroll();

if(maxScroll.top === 0) {
return;
}

if ((maxScroll.left !== -1 && scrollValues.left >= maxScroll.left) ||
(maxScroll.top !== -1 && scrollValues.top >= maxScroll.top)) {
onInfinite();
Expand Down

0 comments on commit e35b95e

Please sign in to comment.