made sure CPControl's trackMouse: doesn't eat mouse events when the tableview is in a drag session #431

This commit is contained in:
Klaas Pieter Annema authored and Randall Luecke committed 2010-01-29 11:36:13 -05:00
1 parent 03e63f29dc
commit c423411639
1 file changed
+9
+9
View File
@@ -2160,6 +2160,15 @@ window.setTimeout(function(){
return YES;
}
- (void)trackMouse:(CPEvent)anEvent
{
// Prevent CPControl from eating the mouse events when we are in a drag session
if (![_draggedRowIndexes count])
[super trackMouse:anEvent];
else
[CPApp sendEvent:anEvent];
}
/* ignore */
- (BOOL)continueTracking:(CGPoint)lastPoint at:(CGPoint)aPoint
{