Apply suggestion from @knolleary

pull/5199/head
Nick O'Leary 2025-07-02 16:03:15 +01:00 committed by GitHub
parent 68c2640b68
commit 3f66dd2134
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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];