fix(ui): round position when rasterizing layer

This commit is contained in:
psychedelicious 2024-08-01 23:57:05 +10:00
parent 243feecef9
commit 6c688d6878

View File

@ -397,7 +397,7 @@ export class CanvasLayer {
}
}
this.resetScale();
dispatch(layerRasterized({ id: this.id, imageObject, position: { x: rect.x, y: rect.y } }));
dispatch(layerRasterized({ id: this.id, imageObject, position: { x: Math.round(rect.x), y: Math.round(rect.y) } }));
};
stopTransform = () => {