Skip to content

show immediately when replacing current tooltip (#6058)#6064

Merged
dipeshmsft merged 1 commit intodotnet:release/6.0from
singhashish-wpf:6068to6
Feb 7, 2022
Merged

show immediately when replacing current tooltip (#6058)#6064
dipeshmsft merged 1 commit intodotnet:release/6.0from
singhashish-wpf:6068to6

Conversation

@singhashish-wpf
Copy link
Contributor

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.

@singhashish-wpf singhashish-wpf requested a review from a team as a code owner February 3, 2022 11:47
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 3, 2022
@ghost ghost requested review from SamBent, fabiant3 and ryalanms February 3, 2022 11:47
@leecow leecow added this to the 6.0.3 milestone Feb 3, 2022
@dipeshmsft dipeshmsft merged commit 8abb1e6 into dotnet:release/6.0 Feb 7, 2022
@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 Servicing-approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants