Skip to content

Commit

Permalink
fix long press outside of cell -- taken from pull request
Browse files Browse the repository at this point in the history
lukescott#54

originally implemented in:
pbernery@4c95c4b
  • Loading branch information
David Redenbaugh committed Apr 22, 2016
1 parent c79896e commit 6ff1c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DraggableCollectionView/Helpers/LSCollectionViewHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ - (void)handleLongPressGesture:(UILongPressGestureRecognizer *)sender

_hasShouldAlterTranslationDelegateMethod = [self.collectionView.dataSource respondsToSelector:@selector(collectionView:alterTranslation:)];

NSIndexPath *indexPath = [self indexPathForItemClosestToPoint:[sender locationInView:self.collectionView]];
NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:[sender locationInView:self.collectionView]];

switch (sender.state) {
case UIGestureRecognizerStateBegan: {
if (indexPath == nil) {
Expand Down

0 comments on commit 6ff1c6f

Please sign in to comment.