Skip to content

Commit 9caa2a2

Browse files
fix: Set scaled steps to be at 64 to be in sync with the rest of the canvas
1 parent 86185f2 commit 9caa2a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const ParamScaledHeight = () => {
4141
const newHeight = Math.floor(v);
4242

4343
if (aspectRatio) {
44-
newWidth = roundToMultiple(newHeight * aspectRatio, 8);
44+
newWidth = roundToMultiple(newHeight * aspectRatio, 64);
4545
}
4646

4747
dispatch(
@@ -57,7 +57,7 @@ const ParamScaledHeight = () => {
5757
const resetHeight = Math.floor(initial);
5858

5959
if (aspectRatio) {
60-
resetWidth = roundToMultiple(resetHeight * aspectRatio, 8);
60+
resetWidth = roundToMultiple(resetHeight * aspectRatio, 64);
6161
}
6262

6363
dispatch(

invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const ParamScaledWidth = () => {
4141
let newHeight = scaledBoundingBoxDimensions.height;
4242

4343
if (aspectRatio) {
44-
newHeight = roundToMultiple(newWidth / aspectRatio, 8);
44+
newHeight = roundToMultiple(newWidth / aspectRatio, 64);
4545
}
4646

4747
dispatch(
@@ -57,7 +57,7 @@ const ParamScaledWidth = () => {
5757
let resetHeight = scaledBoundingBoxDimensions.height;
5858

5959
if (aspectRatio) {
60-
resetHeight = roundToMultiple(resetWidth / aspectRatio, 8);
60+
resetHeight = roundToMultiple(resetWidth / aspectRatio, 64);
6161
}
6262

6363
dispatch(

0 commit comments

Comments
 (0)