mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes stage position changing on zoom
This commit is contained in:
parent
917c576ddb
commit
e7f670a5b6
@ -88,7 +88,9 @@ const IAICanvasStatusText = () => {
|
||||
boxX
|
||||
)}, ${roundToHundreth(boxY)})`}</div>
|
||||
<div>{`Canvas Dimensions: ${stageWidth}×${stageHeight}`}</div>
|
||||
<div>{`Canvas Position: ${stageX}×${stageY}`}</div>
|
||||
<div>{`Canvas Position: ${roundToHundreth(stageX)}×${roundToHundreth(
|
||||
stageY
|
||||
)}`}</div>
|
||||
<div>{`Cursor Position: (${cursorX}, ${cursorY})`}</div>
|
||||
</>
|
||||
)}
|
||||
|
@ -244,7 +244,7 @@ export const canvasSlice = createSlice({
|
||||
state.boundingBoxCoordinates = floorCoordinates(action.payload);
|
||||
},
|
||||
setStageCoordinates: (state, action: PayloadAction<Vector2d>) => {
|
||||
state.stageCoordinates = floorCoordinates(action.payload);
|
||||
state.stageCoordinates = action.payload;
|
||||
},
|
||||
setBoundingBoxPreviewFill: (state, action: PayloadAction<RgbaColor>) => {
|
||||
state.boundingBoxPreviewFill = action.payload;
|
||||
|
Loading…
Reference in New Issue
Block a user