Fix node graph pans and starts box selection after focusing on another window (#210)

This commit is contained in:
LuChiChick 2026-05-20 14:47:24 +08:00
parent 80a18b6a79
commit 986028a3a3

View File

@ -724,7 +724,7 @@ void BeginCanvasInteraction(ImNodesEditorContext& editor)
const bool mouse_not_in_canvas = !MouseInCanvas();
if (editor.ClickInteraction.Type != ImNodesClickInteractionType_None ||
any_ui_element_hovered || mouse_not_in_canvas)
any_ui_element_hovered || mouse_not_in_canvas || !ImGui::IsWindowHovered())
{
return;
}