File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Blazor.Diagrams/Components/Renderers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ private void OnPointerUp(PointerEventArgs e)
9999
100100 private PortModel ? FindPortOn ( double clientX , double clientY )
101101 {
102+ var relativePt = BlazorDiagram . GetRelativeMousePoint ( clientX , clientY ) ;
102103 var allPorts = BlazorDiagram . Nodes . SelectMany ( n => n . Ports )
103104 . Union ( BlazorDiagram . Groups . SelectMany ( g => g . Ports ) ) ;
104105
@@ -107,7 +108,6 @@ private void OnPointerUp(PointerEventArgs e)
107108 if ( ! port . Initialized )
108109 continue ;
109110
110- var relativePt = BlazorDiagram . GetRelativeMousePoint ( clientX , clientY ) ;
111111 if ( port . GetBounds ( ) . ContainsPoint ( relativePt ) )
112112 return port ;
113113 }
@@ -159,4 +159,4 @@ private async void OnPortChanged(Model _)
159159 await UpdateDimensions ( ) ;
160160 }
161161 }
162- }
162+ }
You can’t perform that action at this time.
0 commit comments