change mouse resize

This commit is contained in:
Qing 2022-10-20 21:13:13 +08:00
parent c6268d52b2
commit 7e39169654

View File

@ -1096,7 +1096,13 @@ export default function Editor() {
{file === undefined ? renderFileSelect() : renderCanvas()} {file === undefined ? renderFileSelect() : renderCanvas()}
{showBrush && !isInpainting && !isPanning && ( {showBrush && !isInpainting && !isPanning && (
<div className="brush-shape" style={getBrushStyle(x, y)} /> <div
className="brush-shape"
style={getBrushStyle(
isChangingBrushSizeByMouse ? changeBrushSizeByMouseInit.x : x,
isChangingBrushSizeByMouse ? changeBrushSizeByMouseInit.y : y
)}
/>
)} )}
{showRefBrush && ( {showRefBrush && (