Skip to content
Browse files

Check for userInteractionEnabled flag. Fixes #354

  • Loading branch information...
1 parent f2ab34d commit 2a249e72b24512a44d8f5f78b79bddbe0890300f @steipete committed Aug 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 PSTCollectionView/PSTCollectionView.m
View
2 PSTCollectionView/PSTCollectionView.m
@@ -615,7 +615,7 @@ - (NSIndexPath *)indexPathForItemAtPoint:(CGPoint)point {
PSTCollectionViewItemKey *itemKey = (PSTCollectionViewItemKey *)key;
if (itemKey.type == PSTCollectionViewItemTypeCell) {
PSTCollectionViewCell *cell = (PSTCollectionViewCell *)obj;
- if (CGRectContainsPoint(cell.frame, point)) {
+ if (CGRectContainsPoint(cell.frame, point) && cell.userInteractionEnabled) {
indexPath = itemKey.indexPath;
*stop = YES;
}

0 comments on commit 2a249e7

Please sign in to comment.
Something went wrong with that request. Please try again.