Author: mlytwyn Date: Wed Mar 12 14:38:08 2014 New Revision: 37745 URL: http://svn.gna.org/viewcvs/gnustep?rev=37745&view=rev Log: Pass mouseDragged to window if mouseDown passed to window
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m URL: http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m?rev=37745&r1=37744&r2=37745&view=diff ============================================================================== --- libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m (original) +++ libs/gui/branches/gnustep_testplant_branch/Source/NSWindow.m Wed Mar 12 14:38:08 2014 @@ -3899,7 +3899,10 @@ switch (type) { case NSLeftMouseDragged: - [_lastLeftMouseDownView mouseDragged: theEvent]; + if (_lastLeftMouseDownView) + [_lastLeftMouseDownView mouseDragged: theEvent]; + else + [self mouseDragged: theEvent]; break; case NSOtherMouseDragged: [_lastOtherMouseDownView otherMouseDragged: theEvent]; _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs