Partial fix for bug #27638

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28816 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-10-12 18:54:17 +00:00
parent e0ce4b3581
commit 4f6bd4b133
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-10-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSScroller.m (-mouseDown:): In NSWindows95InterfaceStyle
don't track the knob
2009-10-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (-runModalForWindow:, -runModalSession:):

View file

@ -788,6 +788,8 @@ static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
*/
[self setDoubleValue: doubleValue];
[self sendAction: _action to: _target];
// And then track the knob
[self trackKnob: theEvent];
}
else
{
@ -802,9 +804,12 @@ static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
_hitPart = NSScrollerDecrementPage;
}
[self sendAction: _action to: _target];
/* FIXME: Here we should not track the knob but keep on moving it
towards the mouse until the button goes up. If the mouse moves,
move towards it, but only if this is in the original direction.
*/
}
}
[self trackKnob: theEvent];
break;
}