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) {
|
if (found) {
|
||||||
found.el.delete = true;
|
found.el.delete = true;
|
||||||
startPoint = found.last;
|
// startPoint = found.last;
|
||||||
startPoint = emitter(found.el, found.first, ++count);
|
startPoint = emitter(found.el, found.first, ++count);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -977,7 +977,11 @@ self.kiri.license = exports.LICENSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
function platformDeselect(widget) {
|
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) {
|
if (!widget) {
|
||||||
forAllWidgets(function(widget) {
|
forAllWidgets(function(widget) {
|
||||||
platform.deselect(widget);
|
platform.deselect(widget);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue