directed-graph-creator
directed-graph-creator copied to clipboard
Some problems with shift
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);