fix(infiniteScroll): allow to fire if list does not fill up screen

Addresses #1141
This commit is contained in:
Andy Joslin
2014-04-29 12:04:39 -06:00
parent 3bcf06f217
commit e35b95e123

View File

@@ -36,7 +36,7 @@
* $scope.$broadcast('scroll.infiniteScrollComplete');
* });
* };
*
*
* $scope.$on('stateChangeSuccess', function() {
* $scope.loadMore();
* });
@@ -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();