Browse Source

Fixed snapping

flabbet 1 year ago
parent
commit
d3e8adf664
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/PixiEditor.AvaloniaUI/Views/Nodes/ConnectionLine.cs

+ 5 - 0
src/PixiEditor.AvaloniaUI/Views/Nodes/ConnectionLine.cs

@@ -42,6 +42,11 @@ public class ConnectionLine : Control
         AffectsRender<ConnectionLine>(LineBrushProperty, ThicknessProperty, StartPointProperty, EndPointProperty);
         AffectsRender<ConnectionLine>(LineBrushProperty, ThicknessProperty, StartPointProperty, EndPointProperty);
     }
     }
 
 
+    public ConnectionLine()
+    {
+        IsHitTestVisible = false;
+    }
+
     public override void Render(DrawingContext context)
     public override void Render(DrawingContext context)
     {
     {
         var p1 = new Point(StartPoint.X, StartPoint.Y);
         var p1 = new Point(StartPoint.X, StartPoint.Y);