löschung/deaktiverung

This commit is contained in:
2026-02-01 02:11:28 +01:00
parent adcd0efe2a
commit f5d2194839
3 changed files with 7 additions and 19 deletions

View File

@@ -163,7 +163,7 @@ export function initEditor() {
selectionTimer = setTimeout(() => {
selectionJustChanged = false;
selectionTimer = null;
}, 120);
}, 800);
};
const onUpdate = () => {
if (selectionJustChanged) return;
@@ -174,7 +174,9 @@ export function initEditor() {
? model.changedAttributes()
: (model && model.changed) ? model.changed : null;
const keys = changed ? Object.keys(changed) : [];
if (keys.length === 1 && keys[0] === 'status') return;
if (!keys.length && selectionJustChanged) return;
const safeKeys = new Set(['status', 'toolbar', 'selected', 'hovered', 'highlighted', 'hoverable', 'selectable', 'editable', 'draggable', 'droppable', 'copyable', 'removable', 'locked']);
if (keys.length && keys.every(k => safeKeys.has(k))) return;
if (selectionJustChanged && keys.length === 0) return;
markDirty();
};