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

Closing tooltips on control click #12831

Merged
merged 2 commits into from
Sep 24, 2023

Conversation

HermanKirshin
Copy link
Contributor

What does the pull request do?

Tooltip should be hidden after interaction with control. There are two cases:

Create button that opens modal window on click. Add tooltip with show delay, i.e. 2 seconds.
Quickly click button and modal window will be opened. After 2 seconds tooltip is shown and it will hang on the screen.

Create button that opens modal window on click. Add tooltip with show delay, i.e. 2 seconds.
Wait for tooltip to be opened and click the button. Modal window will be opened and tooltip hangs on the screen.

What is the current behavior?

Tooltip remains opened after click in cases when control do not have pointer anymore but did not receive PointerExited event (i.e. opening modal windows)

What is the updated/expected behavior with this PR?

Tooltip is closed after clicking the control.

@HermanKirshin HermanKirshin changed the title Stop tooltip timer on pointer pressed to avoid hanging tooltips in so… Closing tooltips on control click Sep 8, 2023
@maxkatz6 maxkatz6 enabled auto-merge September 24, 2023 02:46
@maxkatz6 maxkatz6 disabled auto-merge September 24, 2023 02:46
@maxkatz6 maxkatz6 merged commit 99ef172 into AvaloniaUI:master Sep 24, 2023
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.

3 participants