Skip to content

Some problems with shift #10

@memosiki

Description

@memosiki

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions