editor: speed up lasso selection

This commit is contained in:
bordun 2020-04-27 10:58:45 +02:00
parent 92f5c26092
commit 9f018214e2

View file

@ -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) {