fix deselect in preview mode

This commit is contained in:
Stewart Allen 2020-03-11 13:24:09 -04:00
commit 1e72fc5288
2 changed files with 6 additions and 2 deletions

View file

@ -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;

View file

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