editor: speed up lasso selection
This commit is contained in:
parent
67f37c94c6
commit
0bc29ff859
1 changed files with 3 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ class Editor {
|
|||
elements = elements.map(e => widgetManager.getWidgetByElement(e, ':not(.not-editable)')).filter(e => e)
|
||||
|
||||
for (var i in elements) {
|
||||
this.select(elements[i], {multi:true, fromLasso:true})
|
||||
this.select(elements[i], {multi:true, fromLasso:true, lassoEnd: i == elements.length - 1})
|
||||
}
|
||||
|
||||
})
|
||||
|
|
@ -423,6 +423,8 @@ class Editor {
|
|||
|
||||
}
|
||||
|
||||
if (options.fromLasso && !options.lassoEnd) return
|
||||
|
||||
this.unselect()
|
||||
|
||||
if (this.selectedWidgets.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue