Fixed bug in dragging; avoid redrawing when ignoring mouse press

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-03-10 02:18:15 +00:00
parent d8e33bed1e
commit 96097b90ad

View file

@ -94,16 +94,17 @@
{
v = [subs objectAtIndex: i];
r = [v frame];
/* if the click is inside of a subview, return.
this should never happen */
/* if the click is inside of a subview, return. this should
happen only if a subview has leaked a mouse down to next
responder */
if (NSPointInRect(p, r))
{
NSLog(@"NSSplitView got mouseDown that should have gone to subview");
NSLog(@"NSSplitView got mouseDown in subview area");
goto RETURN_LABEL;
}
if (_isVertical == NO)
{
if (NSMaxY(r) < p.y)
if (NSMaxY(r) <= p.y)
{ // can happen only when i>0.
NSView *tempView;
@ -128,7 +129,7 @@
}
else
{
if (NSMinX(r) > p.x)
if (NSMinX(r) >= p.x)
{
offset = i;
@ -298,11 +299,12 @@
[_window invalidateCursorRectsForView: self];
RETURN_LABEL:
[_window setAcceptsMouseMovedEvents: NO];
[self setNeedsDisplay: YES];
[self display];
RETURN_LABEL:
[_window setAcceptsMouseMovedEvents: NO];
}
- (void) adjustSubviews