fix(ui): color picker resets brush opacity

This commit is contained in:
psychedelicious 2024-08-26 08:58:16 +10:00
parent 4b49c1dd6b
commit 307885f505

View File

@ -199,7 +199,7 @@ export const setStageEventHandlers = (manager: CanvasManager): (() => void) => {
manager.stateApi.$colorUnderCursor.set(color); manager.stateApi.$colorUnderCursor.set(color);
} }
if (color) { if (color) {
manager.stateApi.setFill({ ...color, a: 1 }); manager.stateApi.setFill({ ...toolState.fill, ...color });
} }
manager.preview.tool.render(); manager.preview.tool.render();
} else { } else {