Fix dragging nodes (#936)

This commit is contained in:
0HyperCube 2023-01-02 14:38:43 +00:00 committed by Keavon Chambers
parent 2bcc3d3baf
commit df44e8d978

View file

@ -691,7 +691,7 @@ export default defineComponent({
}
}
if (this.selected.length > 0 && this.draggingNodes.roundX !== 0 && this.draggingNodes.roundY !== 0)
if (this.selected.length > 0 && (this.draggingNodes.roundX !== 0 || this.draggingNodes.roundY !== 0))
this.editor.instance.moveSelectedNodes(this.draggingNodes.roundX, this.draggingNodes.roundY);
// Check if this node should be inserted between two other nodes