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 c79896e commit 6ff1c6fCopy full SHA for 6ff1c6f
DraggableCollectionView/Helpers/LSCollectionViewHelper.m
@@ -220,8 +220,8 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)sender
220
221
_hasShouldAlterTranslationDelegateMethod = [self.collectionView.dataSource respondsToSelector:@selector(collectionView:alterTranslation:)];
222
223
- NSIndexPath *indexPath = [self indexPathForItemClosestToPoint:[sender locationInView:self.collectionView]];
224
-
+ NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:[sender locationInView:self.collectionView]];
+
225
switch (sender.state) {
226
case UIGestureRecognizerStateBegan: {
227
if (indexPath == nil) {
0 commit comments