diff --git a/Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs b/Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs index 79f3a57d..a1340d02 100644 --- a/Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs +++ b/Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs @@ -421,8 +421,8 @@ namespace Fungus } else { - summaryRect.x += commandNameWidth; - summaryRect.width -= commandNameWidth; + summaryRect.x += commandNameWidth + 20; + summaryRect.width -= commandNameWidth + 20; summaryRect.width -= 5; } diff --git a/Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs b/Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs index 5f7d0aa1..c5b9ac58 100644 --- a/Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs +++ b/Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs @@ -66,11 +66,13 @@ namespace Fungus GUI.BeginGroup(clippedArea); _prevGuiMatrix = GUI.matrix; - Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one); + + Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one); Matrix4x4 scale = Matrix4x4.Scale(new Vector3(zoomScale, zoomScale, 1.0f)); GUI.matrix = translation * scale * translation.inverse * GUI.matrix; - - return clippedArea; + + + return clippedArea; } public static void End() diff --git a/Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs b/Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs index 2f5fd60e..3063420d 100755 --- a/Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs +++ b/Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs @@ -559,8 +559,8 @@ namespace Fungus return; } - // Select block when node is clicked - if (Event.current.button == 0 && + // Select block when node is clicked + if (Event.current.button == 0 && Event.current.type == EventType.MouseDown && !mouseOverVariables) {