directed-graph-creator icon indicating copy to clipboard operation
directed-graph-creator copied to clipboard

Some problems with shift

Open memosiki opened this issue 8 years ago • 0 comments

When you still hold shift after making new node and try to make new edge it will also make new node. Just try to make something holding shift. I think that problem in incorrect resetting in graph-creator.js GraphCreator.prototype.circleMouseUp = function(d3node, d){ ... // reset the states state.shiftNodeDrag = false; d3node.classed(consts.connectClass, false);

Fixed problem for me: // mouseup on nodes GraphCreator.prototype.circleMouseUp = function(d3node, d){ ... // reset the states state.shiftNodeDrag = d3.event.shiftKey; d3node.classed(consts.connectClass, false);

memosiki avatar May 17 '17 22:05 memosiki