FIX: dragging Part offset
This commit is contained in:
parent
11075db8d2
commit
fba2c4e249
@ -22,8 +22,8 @@ export class Parts {
|
|||||||
mouseMove($event: MouseEvent) {
|
mouseMove($event: MouseEvent) {
|
||||||
this.updateDragCursor($event);
|
this.updateDragCursor($event);
|
||||||
if (this.dragStartPart !== null && this.dragCursor !== null) {
|
if (this.dragStartPart !== null && this.dragCursor !== null) {
|
||||||
this.dragStartPart.rasterCenterX = Math.floor(this.dragCursor.x / RASTER);
|
this.dragStartPart.rasterCenterX = Math.floor(this.dragCursor.x / RASTER) + 0.5;
|
||||||
this.dragStartPart.rasterCenterY = Math.floor(this.dragCursor.y / RASTER);
|
this.dragStartPart.rasterCenterY = Math.floor(this.dragCursor.y / RASTER) + 0.5;
|
||||||
this.dragStartPart.updateJunctionPositions();
|
this.dragStartPart.updateJunctionPositions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user