diff --git a/Source/ASCollectionView.mm b/Source/ASCollectionView.mm index a7a84b861..f40b18944 100644 --- a/Source/ASCollectionView.mm +++ b/Source/ASCollectionView.mm @@ -1859,8 +1859,11 @@ - (void)_beginBatchFetchingIfNeededWithContentOffset:(CGPoint)contentOffset velo { // Since we are accessing self.collectionViewLayout, we should make sure we are on main ASDisplayNodeAssertMainThread(); - - if (ASDisplayShouldFetchBatchForScrollView(self, self.scrollDirection, self.scrollableDirections, contentOffset, velocity, self.collectionViewLayout.flipsHorizontallyInOppositeLayoutDirection)) { + BOOL flipsHorizontallyInOppositeLayoutDirection = NO; + if (AS_AVAILABLE_IOS(11.0)) { + flipsHorizontallyInOppositeLayoutDirection = self.collectionViewLayout.flipsHorizontallyInOppositeLayoutDirection; + } + if (ASDisplayShouldFetchBatchForScrollView(self, self.scrollDirection, self.scrollableDirections, contentOffset, velocity, flipsHorizontallyInOppositeLayoutDirection)) { [self _beginBatchFetching]; } }