Browse Source
Merge pull request #8014 from MarchingCube/fix-macos-pointtoclient
Fix PointToClient not working on macOS.
pull/8016/head
Max Katz
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
native/Avalonia.Native/src/OSX/window.mm
|
|
|
@ -457,7 +457,7 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
point = ConvertPointY(point); |
|
|
|
NSRect convertRect = [Window convertRectToScreen:NSMakeRect(point.X, point.Y, 0.0, 0.0)]; |
|
|
|
NSRect convertRect = [Window convertRectFromScreen:NSMakeRect(point.X, point.Y, 0.0, 0.0)]; |
|
|
|
auto viewPoint = NSMakePoint(convertRect.origin.x, convertRect.origin.y); |
|
|
|
|
|
|
|
*ret = [View translateLocalPoint:ToAvnPoint(viewPoint)]; |
|
|
|
|