FIX: dragging Part offset

This commit is contained in:
Patrick Haßel 2025-02-04 08:23:30 +01:00
parent 11075db8d2
commit fba2c4e249

View File

@ -22,8 +22,8 @@ export class Parts {
mouseMove($event: MouseEvent) {
this.updateDragCursor($event);
if (this.dragStartPart !== null && this.dragCursor !== null) {
this.dragStartPart.rasterCenterX = Math.floor(this.dragCursor.x / RASTER);
this.dragStartPart.rasterCenterY = Math.floor(this.dragCursor.y / RASTER);
this.dragStartPart.rasterCenterX = Math.floor(this.dragCursor.x / RASTER) + 0.5;
this.dragStartPart.rasterCenterY = Math.floor(this.dragCursor.y / RASTER) + 0.5;
this.dragStartPart.updateJunctionPositions();
}
}