Apply suggestion from @knolleary

This commit is contained in:
Nick O'Leary
2025-07-02 16:03:15 +01:00
committed by GitHub
parent 68c2640b68
commit 3f66dd2134

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