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 committed 2010-01-29 12:14:08 +01:00
1 parent 7715da02e7
commit 78083eea48
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
{