mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(infiniteScroll): allow to fire if list does not fill up screen
Addresses #1141
This commit is contained in:
6
js/angular/directive/infiniteScroll.js
vendored
6
js/angular/directive/infiniteScroll.js
vendored
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user