mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): staging area image offset
This commit is contained in:
parent
918354cd9d
commit
7f40d23f19
@ -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 } }));
|
||||
},
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user