Fix node graph pans and starts box selection after focusing on another window (#210)
This commit is contained in:
parent
80a18b6a79
commit
986028a3a3
@ -724,7 +724,7 @@ void BeginCanvasInteraction(ImNodesEditorContext& editor)
|
|||||||
const bool mouse_not_in_canvas = !MouseInCanvas();
|
const bool mouse_not_in_canvas = !MouseInCanvas();
|
||||||
|
|
||||||
if (editor.ClickInteraction.Type != ImNodesClickInteractionType_None ||
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user