feat: Decrement Brush Size by 1 for values under 5 for more precision

This commit is contained in:
blessedcoolant 2023-09-02 10:23:14 +12:00
parent 469fc49a2f
commit b73216ef81

View File

@ -118,7 +118,11 @@ const IAICanvasToolChooserOptions = () => {
useHotkeys(
['BracketLeft'],
() => {
dispatch(setBrushSize(Math.max(brushSize - 5, 5)));
if (brushSize - 5 <= 5) {
dispatch(setBrushSize(Math.max(brushSize - 1, 1)));
} else {
dispatch(setBrushSize(Math.max(brushSize - 5, 1)));
}
},
{
enabled: () => !isStaging,