editor: check selection sibling against 1st selected widget only
This commit is contained in:
parent
ab1409bdbb
commit
92f5c26092
1 changed files with 1 additions and 3 deletions
|
|
@ -402,9 +402,7 @@ class Editor {
|
|||
|
||||
while (!sameLevel && widget.parent !== widgetManager) {
|
||||
let test = true
|
||||
for (var w of this.selectedWidgets) {
|
||||
if (w.parent !== widget.parent) test = false
|
||||
}
|
||||
if (this.selectedWidgets[0].parent !== widget.parent) test = false
|
||||
sameLevel = test
|
||||
if (!sameLevel) widget = widget.parent
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue