frontend: fix repaint color

This commit is contained in:
Qing 2024-02-15 21:52:52 +08:00
parent bd55feb3a5
commit 293b5ba3f3
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
<Comp
className={cn(
buttonVariants({ variant, size, className }),
"outline-none cursor-default"
"outline-none cursor-default select-none"
)}
ref={ref}
tabIndex={-1}

View File

@ -493,7 +493,8 @@ export const useStore = createWithEqualityFn<AppState & AppAction>()(
imageWidth,
imageHeight,
[maskLineGroup],
maskImages
maskImages,
BRUSH_COLOR
)
if (useLastLineGroup) {
const temporaryMask = await canvasToImage(maskCanvas)