mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 02:20:49 +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
e058ab2deb
commit
04b9709a93
1 changed files with 9 additions and 7 deletions
|
@ -94,16 +94,17 @@
|
||||||
{
|
{
|
||||||
v = [subs objectAtIndex: i];
|
v = [subs objectAtIndex: i];
|
||||||
r = [v frame];
|
r = [v frame];
|
||||||
/* if the click is inside of a subview, return.
|
/* if the click is inside of a subview, return. this should
|
||||||
this should never happen */
|
happen only if a subview has leaked a mouse down to next
|
||||||
|
responder */
|
||||||
if (NSPointInRect(p, r))
|
if (NSPointInRect(p, r))
|
||||||
{
|
{
|
||||||
NSLog(@"NSSplitView got mouseDown that should have gone to subview");
|
NSLog(@"NSSplitView got mouseDown in subview area");
|
||||||
goto RETURN_LABEL;
|
goto RETURN_LABEL;
|
||||||
}
|
}
|
||||||
if (_isVertical == NO)
|
if (_isVertical == NO)
|
||||||
{
|
{
|
||||||
if (NSMaxY(r) < p.y)
|
if (NSMaxY(r) <= p.y)
|
||||||
{ // can happen only when i>0.
|
{ // can happen only when i>0.
|
||||||
NSView *tempView;
|
NSView *tempView;
|
||||||
|
|
||||||
|
@ -128,7 +129,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (NSMinX(r) > p.x)
|
if (NSMinX(r) >= p.x)
|
||||||
{
|
{
|
||||||
offset = i;
|
offset = i;
|
||||||
|
|
||||||
|
@ -298,11 +299,12 @@
|
||||||
|
|
||||||
[_window invalidateCursorRectsForView: self];
|
[_window invalidateCursorRectsForView: self];
|
||||||
|
|
||||||
RETURN_LABEL:
|
|
||||||
[_window setAcceptsMouseMovedEvents: NO];
|
|
||||||
[self setNeedsDisplay: YES];
|
[self setNeedsDisplay: YES];
|
||||||
|
|
||||||
[self display];
|
[self display];
|
||||||
|
RETURN_LABEL:
|
||||||
|
[_window setAcceptsMouseMovedEvents: NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) adjustSubviews
|
- (void) adjustSubviews
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue