TBD: remove bg color when disabling polygon

This commit is contained in:
dwelle 2025-05-07 23:04:22 +02:00
parent b3eb93f130
commit 012076a3e9

View File

@ -147,10 +147,12 @@ export const actionToggleLoopLock = register({
return element;
}
return newElementWith(
element,
toggleLinePolygonState(element, newLoopLockState),
);
return newElementWith(element, {
backgroundColor: newLoopLockState
? element.backgroundColor
: "transparent",
...toggleLinePolygonState(element, newLoopLockState),
});
}),
appState,
captureUpdate: CaptureUpdateAction.IMMEDIATELY,