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

Tooltips not showing on nav highlighting and follow nav highlighting on mouse hover #6622

Closed
euyogi opened this issue Jul 20, 2023 · 3 comments
Labels
bug nav keyboard/gamepad navigation tooltips

Comments

@euyogi
Copy link

euyogi commented Jul 20, 2023

Version/Branch of Dear ImGui:

Version: 1.89.7 (18971)
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_win32cpp + imgui_impl_dx12.cpp

My Issue/Question:

Hello, not sure if I did something that made it behave like that or if it's intended but when ImGui::IsItemHovered() uses ImGuiHoveredFlags_ForTooltip, tooltips won't show on nav highlight, but if cursor is hovering the tooltip will show correctly (on the cursor) but if you move the nav highlight the tooltip will follow it even outside the item that the tooltip should be.

Video

imgui_tooltip_issue.mp4

Standalone, minimal, complete and verifiable example:

You can check it on ImGui Demo Window > Widgets > Tooltips.

Basic, Fancy and Manual tooltips don't show tooltip on nav highlight, the others do. Those same tooltips if hovered by the cursor and moving the nav highlight, the tooltip will follow it, the others don't behave like that. I just used without the ImGuiHoveredFlags_ForTooltip on my project so it isn't much of a problem.

@euyogi euyogi changed the title Tooltips not showing on nav highlighting but follow nav highlighting on mouse hover Tooltips not showing on nav highlighting and follow nav highlighting on mouse hover Jul 20, 2023
@ocornut ocornut added bug nav keyboard/gamepad navigation labels Jul 20, 2023
@ocornut
Copy link
Owner

ocornut commented Jul 20, 2023

Ouch. Very embarrassingly when I added ImGuiHoveredFlags_AllowWhenOverlappedByItem for 10c7709 (June 26) i offset some flags and created a conflict between ImGuiHoveredFlags_ForTooltip and ImGuiHoveredFlags_NoNavOverride.

Big ouch. Pushed the fix 1109de3. Thank you!

ocornut added a commit that referenced this issue Jul 20, 2023
@ocornut ocornut closed this as completed Jul 20, 2023
@ocornut
Copy link
Owner

ocornut commented Jul 20, 2023

Unrelated but I am confused as to why your RadioButton() items look so angly.

  • Have you changed the value for style.CircleTessellationMaxError ? Default is 0.30. Higher value means lower quality.
  • Or are you using some elaborate/custom overall scaling scheme?

@euyogi
Copy link
Author

euyogi commented Jul 20, 2023

Yeah, I changed style.CircleTessellationMaxError, was messing around heh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug nav keyboard/gamepad navigation tooltips
Projects
None yet
Development

No branches or pull requests

2 participants