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

Merge pull request #3476 from Steve-Mcl/fix-calculateGridSnapOffsets

fix PR 'split wire with link nodes' #3416
This commit is contained in:
Nick O'Leary 2022-03-07 21:10:46 +00:00 committed by GitHub
commit 6a5c50ff77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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