Skip to content

Mac: Fix drag mouse coords - #371

Open
AlexCharlton wants to merge 1 commit into
RustAudio:masterfrom
AlexCharlton:mac_fix_drag_coords
Open

AlexCharlton wants to merge 1 commit into
RustAudio:masterfrom
AlexCharlton:mac_fix_drag_coords

Conversation

@AlexCharlton

Copy link
Copy Markdown
Contributor

Currently, on Mac, the y-coordinates of drag events are in a different coordinate space from MouseEvent::CursorMoved: The origin is bottom-left of the window rather than top-left. There's nothing documented that indicates that this would be the case, and this is contrary to the behaviour on other platforms.

This PR aligns the drag event coords with CursorMoved, performing the same conversion as mouse_moved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant