Skip to content

Commit e70059b

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): use grid size correctly when moving bbox
1 parent c41534b commit e70059b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/controlLayers/konva/CanvasBboxModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class CanvasBboxModule extends CanvasModuleBase {
243243
onDragMove = () => {
244244
// The grid size here is the _position_ grid size, not the _dimension_ grid size - it is not constratined by the
245245
// currently-selected model.
246-
const gridSize = this.manager.stateApi.$ctrlKey.get() || this.manager.stateApi.$metaKey.get() ? 8 : 64;
246+
const gridSize = this.manager.stateApi.getGridSize();
247247
const bbox = this.manager.stateApi.getBbox();
248248
const bboxRect: Rect = {
249249
...bbox.rect,

0 commit comments

Comments
 (0)