mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
d8e33bed1e
commit
96097b90ad
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue