JNWCollectionView icon indicating copy to clipboard operation
JNWCollectionView copied to clipboard

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

Open 623637646 opened this issue 9 years ago • 1 comments

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)

623637646 avatar Nov 29 '16 07:11 623637646

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.

jwilling avatar Dec 09 '16 03:12 jwilling