Skip to content

Commit

Permalink
Restore shift-drag to snap/unsnap to grid
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jan 13, 2016
1 parent fa40066 commit 27cbaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/ui/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 27cbaac

Please sign in to comment.