mirror of
https://github.com/livingcomputermuseum/ContrAlto.git
synced 2026-03-10 20:34:24 +00:00
Updated workaround for mouse issue on OS X Sierra
This commit is contained in:
@@ -364,10 +364,12 @@ namespace Contralto.SdlUI
|
||||
private void MouseDown(byte button, int x, int y)
|
||||
{
|
||||
//
|
||||
// OS X issue: we get mousedown events when the window title
|
||||
// is clicked, sometimes. So ignore those.
|
||||
// OS X Sierra issue: we get mousedown events when the window title
|
||||
// is clicked, sometimes. These always show up with a Y coordinate
|
||||
// of zero. So ignore those only for mouse-capture purposes as
|
||||
// a workaround.
|
||||
//
|
||||
if (x < 0 || y < 0)
|
||||
if (!_mouseCaptured && (x <= 0 || y <= 0))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user