mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Increase default value for leadingScreensForBatching to 2.0, as 1.0 is not enough
for most network conditions / backend performance.
This commit is contained in:
@@ -102,7 +102,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
/**
|
/**
|
||||||
* The number of screens left to scroll before the delegate -collectionView:beginBatchFetchingWithContext: is called.
|
* The number of screens left to scroll before the delegate -collectionView:beginBatchFetchingWithContext: is called.
|
||||||
*
|
*
|
||||||
* Defaults to one screenful.
|
* Defaults to two screenfuls.
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, assign) CGFloat leadingScreensForBatching;
|
@property (nonatomic, assign) CGFloat leadingScreensForBatching;
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
|||||||
|
|
||||||
_batchContext = [[ASBatchContext alloc] init];
|
_batchContext = [[ASBatchContext alloc] init];
|
||||||
|
|
||||||
_leadingScreensForBatching = 1.0;
|
_leadingScreensForBatching = 2.0;
|
||||||
|
|
||||||
_asyncDataFetchingEnabled = NO;
|
_asyncDataFetchingEnabled = NO;
|
||||||
_asyncDataSourceLocked = NO;
|
_asyncDataSourceLocked = NO;
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
/**
|
/**
|
||||||
* The number of screens left to scroll before the delegate -tableView:beginBatchFetchingWithContext: is called.
|
* The number of screens left to scroll before the delegate -tableView:beginBatchFetchingWithContext: is called.
|
||||||
*
|
*
|
||||||
* Defaults to one screenful.
|
* Defaults to two screenfuls.
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, assign) CGFloat leadingScreensForBatching;
|
@property (nonatomic, assign) CGFloat leadingScreensForBatching;
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
|||||||
_asyncDataFetchingEnabled = NO;
|
_asyncDataFetchingEnabled = NO;
|
||||||
_asyncDataSourceLocked = NO;
|
_asyncDataSourceLocked = NO;
|
||||||
|
|
||||||
_leadingScreensForBatching = 1.0;
|
_leadingScreensForBatching = 2.0;
|
||||||
_batchContext = [[ASBatchContext alloc] init];
|
_batchContext = [[ASBatchContext alloc] init];
|
||||||
|
|
||||||
_automaticallyAdjustsContentOffset = NO;
|
_automaticallyAdjustsContentOffset = NO;
|
||||||
|
|||||||
Reference in New Issue
Block a user