1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix PR 'split wire with link nodes' #3416

This commit is contained in:
Steve-Mcl 2022-03-07 20:23:06 +00:00
parent 0e92f68b4a
commit c948573c2d

View File

@ -493,9 +493,9 @@ RED.view = (function() {
nn.y = mousePos[1]; nn.y = mousePos[1];
if (snapGrid) { if (snapGrid) {
var gridOffset = calculateGridSnapOffsets(nn); var gridOffset = RED.view.tools.calculateGridSnapOffsets(nn);
nn.x -= gridOffset[0]; nn.x -= gridOffset.x;
nn.y -= gridOffset[1]; nn.y -= gridOffset.y;
} }
var spliceLink = $(ui.helper).data("splice"); var spliceLink = $(ui.helper).data("splice");