mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
revert previous first responder change, but fix where mouseDown: is sent
This commit is contained in:
parent
347e8ffae1
commit
6b8b6f100e
@ -1916,14 +1916,14 @@ NSString * const NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification
|
||||
switch([event type]){
|
||||
|
||||
case NSLeftMouseDown:{
|
||||
NSView *view=[_backgroundView hitTest:[event locationInWindow]];
|
||||
NSView *view=[_backgroundView hitTest:[event locationInWindow]];
|
||||
|
||||
if([view acceptsFirstResponder])
|
||||
[self makeFirstResponder:view];
|
||||
|
||||
/* view gets mouse down event before first responder check */
|
||||
[view mouseDown:event];
|
||||
// Event goes to view, not first responder
|
||||
[view mouseDown:event];
|
||||
|
||||
if([view acceptsFirstResponder])
|
||||
[self makeFirstResponder:view];
|
||||
|
||||
_mouseDownLocationInWindow=[event locationInWindow];
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user