mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-13 08:15:14 +00:00
Fix calculating event location in pop up menus
This commit is contained in:
parent
953444b5f7
commit
acfd82532a
@ -464,7 +464,7 @@ partRect.size.width = __partSize.width; \
|
||||
STATE_MOUSEUP,
|
||||
STATE_EXIT
|
||||
} state=STATE_FIRSTMOUSEDOWN;
|
||||
NSPoint firstLocation,point=[NSEvent mouseLocation];
|
||||
NSPoint firstLocation,point=[event locationInWindow];
|
||||
NSInteger initialSelectedIndex = _selectedIndex;
|
||||
firstLocation = point;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user