Skip to content

Commit

Permalink
Merge pull request #167 from crazymaik/capture-cell-mouse-actions
Browse files Browse the repository at this point in the history
Do not pass up mouse actions on cell for Issue #166
  • Loading branch information
jwilling committed May 27, 2016
2 parents 38ec08a + ab475d6 commit aab9e56
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions JNWCollectionView/JNWCollectionViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,10 @@ - (NSImage *)backgroundImage {
}

- (void)mouseDown:(NSEvent *)theEvent {
[super mouseDown:theEvent];

[self.collectionView mouseDownInCollectionViewCell:self withEvent:theEvent];
}

- (void)mouseUp:(NSEvent *)theEvent {
[super mouseUp:theEvent];

[self.collectionView mouseUpInCollectionViewCell:self withEvent:theEvent];

if (theEvent.clickCount == 2) {
Expand All @@ -174,11 +170,12 @@ - (void)mouseUp:(NSEvent *)theEvent {
}

- (void)rightMouseDown:(NSEvent *)theEvent {
[super rightMouseDown:theEvent];

[self.collectionView rightClickInCollectionViewCell:self withEvent:theEvent];
}

- (void)rightMouseUp:(NSEvent *)theEvent {
}

#pragma mark NSObject

- (NSString *)description {
Expand Down

0 comments on commit aab9e56

Please sign in to comment.