mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Nav: Selectable(): activating selectable also sets NavId + removed the MouseDelta test (added in 43ee5d73e9
, #323) as I don't think it is needed. (#787)
This commit is contained in:
parent
64a51327d3
commit
cb4e6c8212
@ -9788,7 +9788,8 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
|
||||
selected = false;
|
||||
|
||||
// Hovering selectable with mouse updates NavId accordingly so navigation can be resumed with gamepad/keyboard (this doesn't happen on most widgets)
|
||||
if (hovered && !g.NavDisableMouseHover && g.NavWindow == window && (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f))
|
||||
if (pressed || hovered)// && (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f))
|
||||
if (!g.NavDisableMouseHover && g.NavWindow == window)
|
||||
{
|
||||
g.NavDisableHighlight = true;
|
||||
SetNavId(id, window->DC.NavLayerCurrent);
|
||||
|
Loading…
Reference in New Issue
Block a user