Permalink
Browse files

Do not send willSelectItemAtIndexPath: when dragging.

  • Loading branch information...
1 parent fe12020 commit 217444a8bde286526cf08dfa5325eb550f306c57 @zoul zoul committed with jonsterling Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 KKGridView/KKGridView.m
View
@@ -1494,7 +1494,7 @@ - (void)_handleSelection:(UILongPressGestureRecognizer *)recognizer
return;
}
- if (state == UIGestureRecognizerStateEnded && _delegateRespondsTo.willSelectItem)
+ if (state == UIGestureRecognizerStateEnded && _delegateRespondsTo.willSelectItem && ![self isDragging])
indexPath = [self.delegate gridView:self willSelectItemAtIndexPath:indexPath];
// The delegate may have returned a nil index path to cancel the selection.

0 comments on commit 217444a

Please sign in to comment.