Merge pull request #5199 from GogoVega/fix-5197

Do not select a nearest node if move is active
This commit is contained in:
Nick O'Leary
2025-07-02 16:21:36 +01:00
committed by GitHub

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() === RED.state.MOVING_ACTIVE) { return }
var selection = RED.view.selection();
if (selection.nodes && selection.nodes.length === 1) {
var origin = selection.nodes[0];