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

View file

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