fix(ui): round position when rasterizing layer

This commit is contained in:
psychedelicious 2024-08-01 23:57:05 +10:00
parent 4d20cc11d4
commit 298f1919fa

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 = () => {