Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 1dd6cef

Browse files
committed
Merge pull request #1105 from facebook/RangeControlAllNodes
[ASRangeControllerBeta] Scan all nodes after edit operations.
2 parents e0e019e + e6d5e26 commit 1dd6cef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AsyncDisplayKit/Details/ASRangeControllerBeta.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ - (void)_updateVisibleNodeIndexPaths
134134
[allIndexPaths unionSet:_allPreviousIndexPaths];
135135
_allPreviousIndexPaths = allCurrentIndexPaths;
136136

137+
if (!_rangeIsValid) {
138+
[allIndexPaths addObjectsFromArray:ASIndexPathsForMultidimensionalArray(allNodes)];
139+
}
140+
137141
// This array is only used if logging is enabled.
138142
NSMutableArray<NSIndexPath *> *modifiedIndexPaths = (RangeControllerLoggingEnabled ? [NSMutableArray array] : nil);
139143

0 commit comments

Comments
 (0)