-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Don't hide tooltip when pointer is over it. #13565
Conversation
Shouldn't the tooltip close when the mouse isn't over it anymore? |
I think this should solve this #13709 |
Good point. I guess if we go with this approach we need to check for the pointer exiting the tooltip and then close if it's over another control. @MrJul not sure what you think of this approach vs #13709 ? I suspect that capturing the mouse to show a tooltip is going to break things. |
Yes, I think that would solve the issue.
I've commented on #13709: I agree with you, the capture approach is breaking things. |
If the pointer has been moved from the control to the tooltip, then out of the tooltip to another control, ensure that the tooltip is closed.
@MrJul ok, pushed a fix for the pointer exiting the tooltip. |
I've tested the PR and it reacts exactly as I would expect :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Add failing test for #8638. * Don't hide tooltip when pointer is over tooltip. Fixes #8638 * Close the tooltip when pointer exits. If the pointer has been moved from the control to the tooltip, then out of the tooltip to another control, ensure that the tooltip is closed. * AdornedControl can be a standard CLR property.
Sorry for commenting on an old thread. This solution works great on Windows but does not work on macOS and probably does not work on Linux as well (#11179). |
What does the pull request do?
As described in #8638, don't hide the tooltip for a control when the pointer moves over it.
What is the current behavior?
If a tooltip should be shown near the bounds of the screen, it won't appear. You can test this on the tooltip page in the control catalog.
What is the updated/expected behavior with this PR?
The tooltip stays open.
Checklist
Fixed issues
Fixes #8638