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:
parent
0e92f68b4a
commit
c948573c2d
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user