mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-20 01:34:20 +00:00
IO: do not claim io.WantCaptureMouse=true on the mouse release frame of a button which was pressed over void. (#1392)
This commit is contained in:
parent
50a0f18e6a
commit
c554c402d3
3 changed files with 5 additions and 2 deletions
|
|
@ -4598,7 +4598,7 @@ void ImGui::UpdateHoveredWindowAndCaptureFlags()
|
|||
io.MouseDownOwnedUnlessPopupClose[i] = (g.HoveredWindow != NULL) || has_open_modal;
|
||||
}
|
||||
mouse_any_down |= io.MouseDown[i];
|
||||
if (io.MouseDown[i])
|
||||
if (io.MouseDown[i] || io.MouseReleased[i]) // Increase release frame for our evaluation of earliest button (#1392)
|
||||
if (mouse_earliest_down == -1 || io.MouseClickedTime[i] < io.MouseClickedTime[mouse_earliest_down])
|
||||
mouse_earliest_down = i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue