fix(ui): canvas bbox number input wonky

It was rounding dimensions when it shouldn't.

Closes #5453
This commit is contained in:
psychedelicious 2024-01-09 18:11:01 +11:00 committed by Kent Keirsey
parent 4082f25062
commit b501bd709f

View File

@ -101,13 +101,10 @@ const setBoundingBoxDimensionsReducer = (
optimalDimension: number
) => {
const boundingBoxDimensions = payload;
const newDimensions = roundDimensionsToMultiple(
{
...state.boundingBoxDimensions,
...boundingBoxDimensions,
},
CANVAS_GRID_SIZE_FINE
);
const newDimensions = {
...state.boundingBoxDimensions,
...boundingBoxDimensions,
};
state.boundingBoxDimensions = newDimensions;
if (state.boundingBoxScaleMethod === 'auto') {
const scaledDimensions = getScaledBoundingBoxDimensions(