Color picker does not overwrite user-selected alpha

This commit is contained in:
psychedelicious 2022-11-24 14:40:04 +11:00 committed by blessedcoolant
parent e67ef4aec2
commit db188cd3c3

View File

@ -688,7 +688,10 @@ export const canvasSlice = createSlice({
state.colorPickerColor = action.payload;
},
commitColorPickerColor: (state) => {
state.brushColor = state.colorPickerColor;
state.brushColor = {
...state.colorPickerColor,
a: state.brushColor.a,
};
state.tool = 'brush';
},
setMergedCanvas: (state, action: PayloadAction<CanvasImage>) => {