mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Improves mouse capture behaviour.
This commit is contained in:
parent
c8917e677b
commit
9f0cde3d69
@ -281,6 +281,10 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
|
||||
_mouseIsCaptured = YES;
|
||||
[NSCursor hide];
|
||||
CGAssociateMouseAndMouseCursorPosition(false);
|
||||
|
||||
// Don't report the first click to the delegate; treat that as merely
|
||||
// an invitation to capture the cursor.
|
||||
return;
|
||||
}
|
||||
|
||||
[self.responderDelegate mouseDown:event];
|
||||
|
Loading…
Reference in New Issue
Block a user