Restore shift-drag to snap/unsnap to grid

This commit is contained in:
Nick O'Leary 2016-01-13 09:16:24 +00:00
parent fa4006619e
commit 27cbaac343
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ RED.view = (function() {
node.n.y -= minY;
}
}
if (snapGrid && moving_set.length > 0) {
if (snapGrid != d3.event.shiftKey && moving_set.length > 0) {
var gridOffset = [0,0];
node = moving_set[0];
gridOffset[0] = node.n.x-(gridSize*Math.floor((node.n.x-node.n.w/2)/gridSize)+node.n.w/2);