When not visible, only batch fetch to fill visible area

This commit is contained in:
Adlai Holler
2016-12-05 15:00:39 -08:00
parent 21cad90355
commit 9bc58dc024
5 changed files with 40 additions and 19 deletions

View File

@@ -1708,6 +1708,12 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
[_rangeController setNeedsUpdate];
[_rangeController updateIfNeeded];
}
// When we aren't visible, we will only fetch up to the visible area. Now that we are visible,
// we will fetch visible area + leading screens, so we need to check.
if (visible) {
[self _checkForBatchFetching];
}
}
#pragma mark ASCALayerExtendedDelegate