mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): pixelRect should always be integer
This commit is contained in:
parent
6db615ed5a
commit
7f05af4a68
@ -658,8 +658,8 @@ export class CanvasTransformer {
|
||||
const { minX, minY, maxX, maxY } = extents;
|
||||
this.nodeRect = { ...rect };
|
||||
this.pixelRect = {
|
||||
x: rect.x + minX,
|
||||
y: rect.y + minY,
|
||||
x: Math.round(rect.x) + minX,
|
||||
y: Math.round(rect.y) + minY,
|
||||
width: maxX - minX,
|
||||
height: maxY - minY,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user