You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
@appleguy, it seems that the way ASRangeControllerBeta works is that it takes union of FetchData, Display and Visible index paths and updates each node in the set. However when scrollToItemAtIndexPath is used, nodes that were previously visible might not be part of the set (because they are too far, and not even members of FetchData set) and thus retain old interface state, even though they are no longer visible.
I understand that the idea is that the range controller doesn't keep any unnecessary state, but it doesn't seem to be very reliable when jumping further than range tuning parameters for fetch data.
One possible solution would be to set _scrollDirection = 0 on collectionView when manually jumping to an offset (or using scrollToIndexPath, etc) and then refresh nodes at all existing indexPaths in _updateVisibleNodeIndexPaths.
@appleguy, it seems that the way
ASRangeControllerBetaworks is that it takes union of FetchData, Display and Visible index paths and updates each node in the set. However when scrollToItemAtIndexPath is used, nodes that were previously visible might not be part of the set (because they are too far, and not even members of FetchData set) and thus retain old interface state, even though they are no longer visible.I understand that the idea is that the range controller doesn't keep any unnecessary state, but it doesn't seem to be very reliable when jumping further than range tuning parameters for fetch data.
One possible solution would be to set _scrollDirection = 0 on collectionView when manually jumping to an offset (or using scrollToIndexPath, etc) and then refresh nodes at all existing indexPaths in
_updateVisibleNodeIndexPaths.