Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Fixes stuck mouse buttons after drag #17035

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Sep 16, 2024

What does the pull request do?

This PR resets the internal mouse button states when a drag operation is started on macOS, as we don't get mouseUp events anymore when a dragging session is in progress.

Note that all states are reset on drag since we don't really know what other buttons might be pressed/released during dragging.
Also, it matches the observed behavior on macOS: all pressed buttons must be released for the drop events to be triggered, and not only the one that initiated the drag.

What is the current behavior?

After dragging, the initial mouse button is stuck.

What is the updated/expected behavior with this PR?

The mouse button isn't stuck anymore.

Fixed issues

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051908-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@MrJul MrJul added this pull request to the merge queue Sep 18, 2024
Merged via the queue into AvaloniaUI:master with commit 49fb9ff Sep 18, 2024
11 checks passed
@MrJul MrJul deleted the fixes/stuck-mouse-buttons-after-drag branch September 18, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants