X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ca0bca0f31652f0b27209e97eecac0fb99c2adf..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/src/osx/cocoa/window.mm diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index 07cdeee8a0..5e2a80e53f 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1150,7 +1150,7 @@ void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd) // super of built-ins keeps the mouse up, as wx expects this event, we have to synthesize it // only trigger if at this moment the mouse is already up - if ( [ event type] == NSLeftMouseDown && !( [NSEvent pressedMouseButtons] & 0x01) ) + if ( [ event type] == NSLeftMouseDown && !wxGetMouseState().LeftIsDown() ) { wxMouseEvent wxevent(wxEVT_LEFT_DOWN); SetupMouseEvent(wxevent , event) ;