Activate link splice on node centre not mouse position

This commit is contained in:
Nick O'Leary
2016-04-17 21:28:56 +01:00
parent 95c31f3e17
commit 321f5e615b
2 changed files with 6 additions and 4 deletions

View File

@@ -655,8 +655,8 @@ RED.view = (function() {
var nodes = [];
var bestDistance = Infinity;
var bestLink = null;
var mouseX = mousePos[0];
var mouseY = mousePos[1];
var mouseX = node.n.x;
var mouseY = node.n.y;
if (outer[0][0].getIntersectionList) {
var svgRect = outer[0][0].createSVGRect();
svgRect.x = mouseX;