fix deselect in preview mode
This commit is contained in:
parent
cd56cdd07d
commit
1e72fc5288
2 changed files with 6 additions and 2 deletions
|
|
@ -872,7 +872,7 @@ var gs_kiri_print = exports;
|
|||
});
|
||||
if (found) {
|
||||
found.el.delete = true;
|
||||
startPoint = found.last;
|
||||
// startPoint = found.last;
|
||||
startPoint = emitter(found.el, found.first, ++count);
|
||||
} else {
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -977,7 +977,11 @@ self.kiri.license = exports.LICENSE;
|
|||
}
|
||||
|
||||
function platformDeselect(widget) {
|
||||
// if (viewMode !== VIEWS.ARRANGE) return;
|
||||
if (viewMode !== VIEWS.ARRANGE) {
|
||||
// don't de-select and re-color widgets in,
|
||||
// for example, sliced or preview modes
|
||||
return;
|
||||
}
|
||||
if (!widget) {
|
||||
forAllWidgets(function(widget) {
|
||||
platform.deselect(widget);
|
||||
|
|
|
|||
Loading…
Reference in a new issue