mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fix display of NSScroller during knob tracking.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2262 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a05e35e336
commit
1d97334ec8
2 changed files with 8 additions and 2 deletions
|
@ -5,6 +5,8 @@ Thu Mar 27 09:43:02 1997 GNUstep Development <gnustep@net-community.com>
|
|||
* Source/NSApplication.m (-peekNextEvent): New method.
|
||||
(-peekEventMatchingMask:untilDate:inMode:dequeue:): New method.
|
||||
* Source/NSControl.m (-setAlignment:): Display if needed.
|
||||
* Source/NSScroller.m (-trackKnob:): Set the value of the cell
|
||||
manually to prevent automatic redisplay of scroller.
|
||||
|
||||
Thu Mar 20 10:40:51 1997 GNUstep Development <gnustep@net-community.com>
|
||||
|
||||
|
|
|
@ -295,7 +295,9 @@ id gnustep_gui_nsscroller_class = nil;
|
|||
{
|
||||
pos = (point.x - barRect.origin.x - (knobRect.size.width/2))
|
||||
/ (barRect.size.width - knobRect.size.width);
|
||||
[self setFloatValue: pos];
|
||||
if (pos < 0) pos = 0;
|
||||
if (pos > 1) pos = 1;
|
||||
[[self cell] setFloatValue: pos];
|
||||
[self drawBar];
|
||||
[self drawKnob];
|
||||
[[self window] flushWindow];
|
||||
|
@ -304,7 +306,9 @@ id gnustep_gui_nsscroller_class = nil;
|
|||
{
|
||||
pos = (point.y - barRect.origin.y - (knobRect.size.height/2))
|
||||
/ (barRect.size.height - knobRect.size.height);
|
||||
[self setFloatValue: pos];
|
||||
if (pos < 0) pos = 0;
|
||||
if (pos > 1) pos = 1;
|
||||
[[self cell] setFloatValue: pos];
|
||||
[self drawBar];
|
||||
[self drawKnob];
|
||||
[[self window] flushWindow];
|
||||
|
|
Loading…
Reference in a new issue