-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Frame hover glitch when moving on overlapping item border, with SetNextItemAllowOverlap #7515
Comments
Here's the C++ repro: // #7515
{
ImGui::SeparatorText("#7515");
ImVec2 pos = ImGui::GetCursorPos();
ImGui::SetNextItemAllowOverlap();
ImGui::Button("button3", { 50.0f, 50.0f });
bool h1 = ImGui::IsItemHovered();
pos.y += 25;
ImGui::SetCursorPos(pos);
ImGui::Button("Button4", { 50.0f, 50.0f });// # button or dummy, irrelevant
//ImGui::Dummy({ 50.0f, 50.0f });
bool h2 = ImGui::IsItemHovered();
if (h1 || h2)
printf("[%05d] %s%s\n", ImGui::GetFrameCount(), h1 ? "hover top button" : "", h2 ? "hover bottom button" : "");
}
I consider this an issue, let me investigate.
This is the same as #7514 and I don't consider this an issue. |
…() and Overlap behavior. ocornut/imgui#7514 ocornut/imgui#7515
I have a pushed a test for the current behavior (which isn't necessarily correct) So if we introduce changes we can aim to validate them against current test and fix the test accordingly. |
Version/Branch of Dear ImGui:
1.89.9 master
Back-ends:
crsfml, 2.5.3
Compiler, OS:
gcc/crystal, Ubuntu
Full config/build information:
No response
Details:
Below code produces something like this...
when moving down (bad):
when moving up (bad):
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: