X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/66beb53d8311c422fe21637493136780002d0fc5..981e87b8a8d4dfca0c816d8bcedcd7c4dbdab9f4:/src/editor/modules/documentCanvas/canvas/genericElement.js?ds=sidebyside diff --git a/src/editor/modules/documentCanvas/canvas/genericElement.js b/src/editor/modules/documentCanvas/canvas/genericElement.js index 4bdc524..a2601f8 100644 --- a/src/editor/modules/documentCanvas/canvas/genericElement.js +++ b/src/editor/modules/documentCanvas/canvas/genericElement.js @@ -105,6 +105,9 @@ $.extend(generic, { if(event.type === 'nodeMoved') { actionArg = utils.getElementForNode(event.meta.node, event.meta.parent); + if(actionArg.sameNode(referenceElement)) { + referenceElement = this.children()[nodeIndex]; + } } else { actionArg = event.meta.node; }