mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Fix for OSX window coordinate conversion mistake.
This commit is contained in:
parent
9c1f3fcf78
commit
893774561d
1 changed files with 2 additions and 2 deletions
|
|
@ -411,9 +411,9 @@ public:
|
|||
if (NSWindow* const viewWindow = [view window])
|
||||
{
|
||||
const NSRect windowFrame = [viewWindow frame];
|
||||
const NSPoint windowPoint = [view convertPoint: NSMakePoint (localPos.x, localPos.y) toView: nil];
|
||||
const NSPoint windowPoint = [view convertPoint: NSMakePoint (localPos.x, viewFrame.size.height - localPos.y) toView: nil];
|
||||
const NSPoint screenPoint = NSMakePoint (windowFrame.origin.x + windowPoint.x,
|
||||
windowFrame.origin.y + windowFrame.size.height - windowPoint.y);
|
||||
windowFrame.origin.y + windowPoint.y);
|
||||
|
||||
if (! isWindowAtPoint (viewWindow, screenPoint))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue