Make cursor respect the captured element by MrJul · Pull Request #21421 · AvaloniaUI/Avalonia (original) (raw)

What does the pull request do?

This PR ensures that the cursor always comes from the captured element, if there's one (otherwise it reverts to the pointer-over element).

Unit tests have been added.

Note that this does not change the pointer-over behavior itself (in other words, #19156 is not affected by this PR).

What is the current behavior?

The cursor changes as soon as the pointer-over element changes, even if there's a capture.

What is the updated/expected behavior with this PR?

The cursor always comes from the captured element if there's one.

Fixed issues