Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to listen a Click event in JNWCollectionViewDelegate? #183

Open
623637646 opened this issue Nov 29, 2016 · 1 comment
Open

Comments

@623637646
Copy link

I found this
- (void)collectionView:(JNWCollectionView *)collectionView mouseUpInItemAtIndexPath:(NSIndexPath *)indexPath withEvent:(NSEvent *)event;
but it is not what I want.

I think, if a event moved,and up, it isn't a Click event.
only a event down and up(with moved),it is a Click.

(my English is poor,hahaha)

@jwilling
Copy link
Owner

jwilling commented Dec 9, 2016

Sorry for the delay. I understand what you mean. It would be ideal if there was a click event delegate method that encapsulated the logic for checking if the mouse up event occurred in the same cell as the mouse down event.

Unfortunately I don't have time to add this myself, but pull requests are welcome! It could be done by keeping a reference to the cell that captures the mouse down event, and checking in the mouse up event if the cell is identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants