Fix calculating event location in pop up menus

This commit is contained in:
Sergey Bugaev 2018-08-11 07:46:52 +03:00
parent 953444b5f7
commit acfd82532a

View File

@ -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;