mirror of https://github.com/mpv-player/mpv
cocoa_common: send mouse moved events to core when dragging
This change fixes mouse autohide when dragging mouse.
This commit is contained in:
parent
405182af46
commit
25d66f526e
|
@ -809,7 +809,7 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)mouseMoved: (NSEvent *) theEvent
|
||||
- (void)signalMouseMovement:(NSEvent *)theEvent
|
||||
{
|
||||
NSView *view = self.contentView;
|
||||
NSPoint loc = [view convertPoint:[theEvent locationInWindow] fromView:nil];
|
||||
|
@ -822,9 +822,14 @@ int vo_cocoa_cgl_color_size(struct vo *vo)
|
|||
}
|
||||
}
|
||||
|
||||
- (void)mouseMoved:(NSEvent *)theEvent
|
||||
{
|
||||
[self signalMouseMovement:theEvent];
|
||||
}
|
||||
|
||||
- (void)mouseDragged:(NSEvent *)theEvent
|
||||
{
|
||||
[self mouseEvent: theEvent];
|
||||
[self signalMouseMovement:theEvent];
|
||||
}
|
||||
|
||||
- (void)mouseDown:(NSEvent *)theEvent
|
||||
|
|
Loading…
Reference in New Issue