fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: plugins/core - support for undo/redo selection restore in most actions
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
genericElement.js
diff --git
a/src/editor/modules/documentCanvas/canvas/genericElement.js
b/src/editor/modules/documentCanvas/canvas/genericElement.js
index
4bdc524
..
a2601f8
100644
(file)
--- 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(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;
}
} else {
actionArg = event.meta.node;
}