mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
Apply suggestion from @knolleary
This commit is contained in:
@@ -369,7 +369,7 @@ RED.view.tools = (function() {
|
||||
|
||||
function gotoNearestNode(direction) {
|
||||
// Do not select a nearest node if move is active
|
||||
if (RED.view.state() == 3) { return }
|
||||
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