Do not select a nearest node if move is active

This commit is contained in:
GogoVega
2025-06-29 12:16:55 +02:00
parent 01815b995e
commit 68c2640b68

View File

@@ -368,6 +368,8 @@ RED.view.tools = (function() {
function gotoNearestNode(direction) {
// Do not select a nearest node if move is active
if (RED.view.state() == 3) { return }
var selection = RED.view.selection();
if (selection.nodes && selection.nodes.length === 1) {
var origin = selection.nodes[0];