Skip to content

Commit

Permalink
set state correctly when dragging node
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Ross committed Oct 25, 2018
1 parent 34f01d7 commit 736714a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions the-graph/the-graph-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ module.exports.register = function (context) {
}
this.props.graph.startTransaction('movenode');
}
this.setState({ moving: true });
this.setState({ lastTrackX: 0, lastTrackY: 0});
},
onTrack: function (event) {
// Don't fire on graph
Expand Down

0 comments on commit 736714a

Please sign in to comment.