Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PXIsDragStart was getting called twice on the same mouse down when cl…

…icking on a selected cell.
  • Loading branch information...
commit ee7beda283a4aac220b5b4ec1be195f880f2b7f4 1 parent 25ae322
Tyler Bindon martica authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 Classes/PXListView.m
8 Classes/PXListView.m
@@ -591,8 +591,12 @@ -(void) handleMouseDown: (NSEvent*)theEvent inCell: (PXListViewCell*)theCell //
NSIndexSet *clickedIndexSet = [NSIndexSet indexSetWithIndex: [theCell row]];
// If a cell is already selected, we can drag it out, in which case we shouldn't toggle it:
- if( theEvent and isSelected and [self attemptDragWithMouseDown: theEvent inCell: theCell] )
- return;
+ if( theEvent and isSelected ) {
+ if ([self attemptDragWithMouseDown: theEvent inCell: theCell]) {
+ return;
+ }
+ tryDraggingAgain = NO; // We can't call attemptDrawWithMouseDown twice on the same mouse down.
+ }
if( _allowsMultipleSelection )
Please sign in to comment.
Something went wrong with that request. Please try again.