Skip to content

Commit

Permalink
PXIsDragStart was getting called twice on the same mouse down when cl…
Browse files Browse the repository at this point in the history
…icking on a selected cell.
  • Loading branch information
martica committed Mar 1, 2011
1 parent 25ae322 commit ee7beda
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Classes/PXListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit ee7beda

Please sign in to comment.