mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Update for visibility monitoring
This commit is contained in:
@@ -673,9 +673,11 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
|
||||
|
||||
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
|
||||
{
|
||||
for (ASCellNode *node in _cellsForVisibilityUpdates) {
|
||||
if (node.shouldObserveVisibility) {
|
||||
[node _visibleNodeDidScroll:scrollView withCellFrame:node.frame];
|
||||
for (_ASCollectionViewCell *collectionCell in _cellsForVisibilityUpdates) {
|
||||
ASCellNode *node = [collectionCell node];
|
||||
if (node.shouldMonitorScrollViewDidScroll) {
|
||||
NSLog(@"Calling _visibleNodeDidScroll");
|
||||
[node _visibleNodeDidScroll:scrollView withCellFrame: node.frame];
|
||||
}
|
||||
}
|
||||
if (_asyncDelegateImplementsScrollviewDidScroll) {
|
||||
|
||||
Reference in New Issue
Block a user