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

Fix Mouse Cursor Extensions not changing cursor back #2790

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

michael-hawker
Copy link
Member

Related Issue: #2017

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Sometimes when using Mouse Extensions the cursor doesn't change back properly.

What is the new behavior?

Now cursor should be properly restored.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

Pointer Exit is sometimes called originating from the element itself, which in turn causes it to set the pointer to the changed cursor instead of back to something else. This checks that the source is not the item we've attached the property to.

Unfortunately, the original issue filed with GridSplitter is entirely different as there's a lot more logic there. We should refactor GridSplitter for 6.0 to use Mouse Extensions instead, I have some of this done already as part of another more general 'ContentSplitter' control I've written.

Pointer Exit is sometimes called originating from the element itself, which in turn causes it to set the pointer to the changed cursor instead of back to something else.  This checks that the source is not the item we've attached the property to.
@michael-hawker michael-hawker added this to the 5.1 milestone Feb 8, 2019
@azchohfi azchohfi merged commit 3e99146 into master Feb 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the mhawker/mouse-cursor-fix branch February 8, 2019 20:03
@windowstoolkitbot
Copy link

This PR is linked to unclosed issues. Please check if one of these issues should be closed: #2017

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.

4 participants