From 27cbaac343fb683bbfa8ee9a082038aa62c04c14 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 13 Jan 2016 09:16:24 +0000 Subject: [PATCH] Restore shift-drag to snap/unsnap to grid --- editor/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index 176b1bf43..c65139271 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -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);