From c423411639555525dbd2a60fe2e3cc21d0896074 Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Fri, 29 Jan 2010 12:14:08 +0100 Subject: [PATCH] made sure CPControl's trackMouse: doesn't eat mouse events when the tableview is in a drag session #431 --- AppKit/CPTableView.j | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index ff105e47a..de4397fc3 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -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 {