diff --git a/src/js/Node.js b/src/js/Node.js index cc54a44..5e2ae53 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -2044,7 +2044,7 @@ Node.onDragEnd = function (nodes, event) { ? (newIndex + nodes.length) : newIndex; - if (sameParent || oldIndex !== newIndex) { + if (!sameParent || oldIndex !== newIndex) { // only register this action if the node is actually moved to another place editor._onAction('moveNodes', { count: nodes.length,