select color and do not redraw twice on maskbrush
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
207921978b
commit
c5d887620d
2 changed files with 2 additions and 3 deletions
|
@ -161,9 +161,6 @@ const maskBrushTool = () =>
|
||||||
state.brushSize -
|
state.brushSize -
|
||||||
Math.floor(state.config.brushScrollSpeed * evn.delta)
|
Math.floor(state.config.brushScrollSpeed * evn.delta)
|
||||||
);
|
);
|
||||||
state.movecb(evn);
|
|
||||||
} else {
|
|
||||||
state.movecb(evn);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -270,6 +270,8 @@ const selectTransformTool = () =>
|
||||||
);
|
);
|
||||||
|
|
||||||
// Draw selection box
|
// Draw selection box
|
||||||
|
uiCtx.strokeStyle = "#FFF";
|
||||||
|
console.debug(bbvp);
|
||||||
uiCtx.setLineDash([4, 2]);
|
uiCtx.setLineDash([4, 2]);
|
||||||
uiCtx.strokeRect(bbvp.x, bbvp.y, bbvp.w, bbvp.h);
|
uiCtx.strokeRect(bbvp.x, bbvp.y, bbvp.w, bbvp.h);
|
||||||
uiCtx.setLineDash([]);
|
uiCtx.setLineDash([]);
|
||||||
|
|
Loading…
Reference in a new issue