picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.53k stars 318 forks source link

Mac: Use current event window when calling PointToScreen if needed #2572

Closed cwensley closed 8 months ago

cwensley commented 8 months ago

If you have a drag loop which then removes the control you are dragging, it could cause the PointToScreen calls to invert the y axis and report the wrong location. Now we fallback to the current event's window if one exists so we can properly translate the coordinates.