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
1 changed files with 3 additions and 3 deletions

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");