We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b772e commit d315f71Copy full SHA for d315f71
LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m
@@ -173,7 +173,7 @@ - (void)invalidateLayoutIfNecessary {
173
NSIndexPath *newIndexPath = [self.collectionView indexPathForItemAtPoint:self.currentView.center];
174
NSIndexPath *previousIndexPath = self.selectedItemIndexPath;
175
176
- if ((newIndexPath == nil) || [newIndexPath isEqual:previousIndexPath]) {
+ if ((newIndexPath == nil) || (previousIndexPath == nil) || [newIndexPath isEqual:previousIndexPath]) {
177
return;
178
}
179
0 commit comments