Skip to content

Commit

Permalink
Rename interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
miroiu committed Dec 20, 2024
1 parent 01e4b11 commit 2dd2095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/Nodify.Playground/Editor/NodifyEditorView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public NodifyEditorView()

static NodifyEditorView()
{
InputProcessor.Shared<Connector>.RegisterHandlerFactory(elem => new ReconnectingConnectors(elem));
InputProcessor.Shared<Connector>.RegisterHandlerFactory(elem => new RetargetConnections(elem));
}

private void Minimap_Zoom(object sender, ZoomEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Nodify.Playground
/// <summary>
/// Hold CTRL+LeftClick on a connector to start reconnecting it.
/// </summary>
public class ReconnectingConnectors : DragState<Connector>
public class RetargetConnections : DragState<Connector>
{
public static InputGestureRef Reconnect { get; } = new Interactivity.MouseGesture(MouseAction.LeftClick, ModifierKeys.Control);

Expand All @@ -18,7 +18,7 @@ public class ReconnectingConnectors : DragState<Connector>
private Vector _connectorOffset;
private Connector? _targetConnector;

public ReconnectingConnectors(Connector element) : base(element, Reconnect, EditorGestures.Mappings.Connector.CancelAction)
public RetargetConnections(Connector element) : base(element, Reconnect, EditorGestures.Mappings.Connector.CancelAction)
{
}

Expand Down

0 comments on commit 2dd2095

Please sign in to comment.