mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:37:39 +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
|
@ -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…
Add table
Add a link
Reference in a new issue