From 65722739d7d2641bb3ba016c192600a134e5df18 Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Sat, 13 Mar 2010 00:07:00 -0500 Subject: [PATCH] Fixes flickering issues with CPTableView if you hold the command key and drag. Closes #544 --- AppKit/CPTableView.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index fe91360b3..d07f3d19a 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -194,6 +194,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; SEL _doubleAction; unsigned _columnAutoResizingStyle; + int _lastTrackedRowIndex; CGPoint _originalMouseDownPoint; BOOL _verticalMotionCanDrag; unsigned _destinationDragStyle; @@ -2654,8 +2655,11 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; } _isSelectingSession = YES; - if(row >= 0) + if(row >= 0 && row !== _lastTrackedRowIndex) + { + _lastTrackedRowIndex = row; [self _updateSelectionWithMouseAtRow:row]; + } if ((_implementedDataSourceMethods & CPTableViewDataSource_tableView_setObjectValue_forTableColumn_row_) && !_trackingPointMovedOutOfClickSlop)