Skip to content

Don't alter any InputElement properties from in-process dnd handler #18288

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

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

kekekeks
Copy link
Member

Our initial implementation of in-process drag-n-drop was altering the cursor of the control under the pointer and reverting it back after the drag operation was done. This didn't account for the other code potentially changing said cursor on the same element in the meantime.

This PR introduces an internal cursor override API for TopLevel that stores the temporary cursor in a field and uses it while the override is active.

@kekekeks kekekeks added the backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch label Feb 22, 2025
@maxkatz6 maxkatz6 added the bug label Feb 22, 2025
@avaloniaui-bot
Copy link

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

@kekekeks kekekeks added this pull request to the merge queue Feb 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 23, 2025
@maxkatz6 maxkatz6 added this pull request to the merge queue Feb 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 23, 2025
@kekekeks kekekeks merged commit 0cb1cf2 into master Feb 24, 2025
12 checks passed
@kekekeks kekekeks deleted the fixes/improve-in-process-dnd-cursor-hack branch February 24, 2025 10:22
@MrJul MrJul added backported-11.2.x and removed backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Feb 28, 2025
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.

4 participants