mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
NSWindow -sendEvent:becomesKeyOnlyIfNeeded now sends mouseDragged events to _lastView, rather than view (if exists) underneath mouse
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20569 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8464ec6d4
commit
57d8fc5b92
2 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-01-17 Adrian Robert <arobert@cogsci.ucsd.edu>
|
||||
|
||||
* Source/NSWindow.m (-sendEvent:becomesKeyOnlyIfNeeded:): Give
|
||||
mouseDragged events to _lastView rather than view (if exists)
|
||||
underneath mouse.
|
||||
|
||||
|
||||
2004-01-17 Adrian Robert <arobert@cogsci.ucsd.edu>
|
||||
|
||||
* Source/NSApplication.m
|
||||
|
|
|
@ -3034,16 +3034,13 @@ resetCursorRectsForView(NSView *theView)
|
|||
switch (type)
|
||||
{
|
||||
case NSLeftMouseDragged:
|
||||
v = [_wv hitTest: [theEvent locationInWindow]];
|
||||
[v mouseDragged: theEvent];
|
||||
[_lastView mouseDragged: theEvent];
|
||||
break;
|
||||
case NSOtherMouseDragged:
|
||||
v = [_wv hitTest: [theEvent locationInWindow]];
|
||||
[v otherMouseDragged: theEvent];
|
||||
[_lastView otherMouseDragged: theEvent];
|
||||
break;
|
||||
case NSRightMouseDragged:
|
||||
v = [_wv hitTest: [theEvent locationInWindow]];
|
||||
[v rightMouseDragged: theEvent];
|
||||
[_lastView rightMouseDragged: theEvent];
|
||||
break;
|
||||
default:
|
||||
if (_f.accepts_mouse_moved)
|
||||
|
|
Loading…
Reference in a new issue