We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ImGui::BeginGroup(); ImGui::SmallButton( "button" ); if ( ImGui::IsItemHovered() ) ImGui::SetTooltip( "BUTTON" ); ImGui::EndGroup(); if ( ImGui::IsItemHovered() ) ImGui::SetTooltip( "GROUP" );
button
I think, the correct behavior is show the "GROUP" tooltip in every time. Or, the "BUTTON" in every time.
The text was updated successfully, but these errors were encountered:
Thanks, I will look at it.
Sorry, something went wrong.
EndGroup(): Made IsItemHovered() work when an item was activated with…
dfe4683
…in the group (#849) (loosely follows #840)
Should be fixed now. IsItemHovered() will return true for both the button and the group.
(Note that the behavior of SetTooltip() is to overwrite a previous tooltip, whereas BeginTooltip()/EndTooltip() does a regular append.)
ImGui::Begin("Bug #849"); ImGui::BeginGroup(); ImGui::SmallButton( "button" ); if ( ImGui::IsItemHovered() ) ImGui::SetTooltip( "BUTTON" ); ImGui::EndGroup(); if ( ImGui::IsItemHovered() ) ImGui::SetTooltip( "GROUP" ); ImGui::End();
No branches or pull requests
Code
Behavior
button
. ( I think it is a funny behavior. )I think, the correct behavior is show the "GROUP" tooltip in every time. Or, the "BUTTON" in every time.
The text was updated successfully, but these errors were encountered: