select color and do not redraw twice on maskbrush

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-06 12:30:55 -03:00
parent 207921978b
commit c5d887620d
2 changed files with 2 additions and 3 deletions

View file

@ -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);
} }
}; };

View file

@ -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([]);