mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 16:41:55 +00:00
* Source/NSSlider.m (-keyDown:): Implement, Fixes bug #14000.
* Source/NSSliderCell.m (-trackMouse:...): Fix allows tick marks only mouse tracking. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef92c9d9b9
commit
49923f47c7
3 changed files with 100 additions and 0 deletions
|
@ -700,6 +700,11 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
|
|||
self, isFlipped);
|
||||
if (floatValue != oldFloatValue)
|
||||
{
|
||||
if (_allowsTickMarkValuesOnly)
|
||||
{
|
||||
floatValue = [self closestTickMarkValueToValue:floatValue];
|
||||
}
|
||||
|
||||
[self setFloatValue: floatValue];
|
||||
if (isContinuous)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue