Placed Fred's change on a branch for further investigation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/NSControl_mouseDown_fix@23391 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-09-04 18:00:21 +00:00
parent 6a31d3eab1
commit 8fde5c6099

View file

@ -747,9 +747,6 @@ static Class actionCellClass;
return;
}
// stop cell from sending action while tracking the mouse...
oldActionMask = [_cell sendActionOn: ([_cell isContinuous]?NSPeriodicMask:0)];
// loop until mouse goes up
e = theEvent;
while (1)
@ -785,14 +782,10 @@ static Class actionCellClass;
dequeue: YES];
if ([e type] == NSLeftMouseUp)
{
mouseUp = YES;
break;
}
}
// allow the cell to send actions again...
[_cell sendActionOn: oldActionMask];
// Mouse went up inside the control but not inside the cell
if (mouseUp)
{