refactor(selection): remove selection on node click

This commit is contained in:
moklick
2019-07-24 16:56:46 +02:00
parent 4be80dd985
commit 5fc84bf12c
4 changed files with 9 additions and 24 deletions
+3
View File
@@ -50,6 +50,9 @@ export default NodeComponent => (props) => {
y: e.clientY * (1 / k)
}
e.preventDefault();
e.stopPropagation();
dispatch(updateNodePos(id, {
x: unscaledPos.x - x - offset.x,
y: unscaledPos.y - y - offset.y