mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 22:15:08 -05:00
fix(ui): staging area image offset
This commit is contained in:
@@ -65,10 +65,9 @@ export const addStagingListeners = (startAppListening: AppStartListening) => {
|
||||
|
||||
assert(layer, 'No layer found to stage image');
|
||||
|
||||
const { x, y } = bbox;
|
||||
const { id } = layer;
|
||||
|
||||
api.dispatch(layerImageAdded({ id, imageDTO, pos: { x, y } }));
|
||||
api.dispatch(layerImageAdded({ id, imageDTO, pos: { x: bbox.x - layer.x, y: bbox.y - layer.y } }));
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user