mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Merge pull request #5199 from GogoVega/fix-5197
Do not select a nearest node if move is active
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user