refactor(selection): remove selection on node click
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user