Fix node graph pans and starts box selection after focusing on another window (#210)
This commit is contained in:
1 parent
80a18b6a79
commit
986028a3a3
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user