Skip to content

Commit b2e0d17

Browse files
authored
Merge pull request #109 from Jcparkyn/dev
Fix bug where nodes can be accidentally deleted
2 parents 6a15784 + 2e17c6a commit b2e0d17

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Nodexr/Shared/Nodes/NodeView.razor

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
{
4040
<div class="node-content"
4141
@onclick:stopPropagation
42+
@onkeydown:stopPropagation
4243
@onmousedown:stopPropagation>
4344
@foreach (INodeInput nodeInput in Data.NodeInputs)
4445
{
@@ -85,17 +86,6 @@
8586
await JSRuntime.InvokeVoidAsync("NodeDragHandler.startNodeDrag");
8687
}
8788

88-
[JSInvokable]
89-
public void UpdateNodePosition(double x, double y)
90-
{
91-
Data.Pos = new Vector2(x, y);
92-
StateHasChanged();
93-
foreach(var input in Data.GetAllInputs().OfType<InputProcedural>())
94-
{
95-
input.Refresh();
96-
}
97-
}
98-
9989
void ShowModal()
10090
{
10191
var modalParameters = new ModalParameters();

0 commit comments

Comments
 (0)