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

show immediately when replacing current tooltip #6058

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

SamBent
Copy link
Contributor

@SamBent SamBent commented Feb 3, 2022

Fixes #5703

Description

Moving the mouse from a control A that is showing a tooltip, to another control B that has a tooltip, should show B's tooltip immediately (ignoring its InitialShowDelay). This works correctly if A's tooltip is closed before checking whether B has a tooltip, which was always the case prior to .NET 6.0. The new tooltip behavior in 6.0 can keep A's tooltip open longer, and now needs to check whether a tooltip is already open when it decides that B wants to open its tooltip.

There's an ambiguous case when moving the mouse toward A's tooltip and passing over B. If the user intends to move to A's tooltip (e.g. to read the tooltip with Magnifier), the tooltip should stay open; but if the user intends to move to B, the tooltip should close and be immediately replaced by B's tooltip. We can't know the user's intent. Instead we delay replacing the tooltip long enough to detect steady motion toward A's tooltip, but short enough to open B's tooltip "immediately" if the user stops moving the mouse.

Customer Impact

Fixes a regression.

Regression

Yes

Testing

Risk

Low. Handles a case that couldn't happen in .NET 5.

@SamBent SamBent requested a review from a team as a code owner February 3, 2022 01:49
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 3, 2022
@ghost ghost requested review from fabiant3 and ryalanms February 3, 2022 01:49
@singhashish-wpf singhashish-wpf merged commit 62352bc into dotnet:main Feb 3, 2022
dipeshmsft pushed a commit that referenced this pull request Feb 7, 2022
Co-authored-by: Sam Bent <sambent@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 6 Tooltip behavior change from .NET 5 (bug?)
2 participants