diff --git a/src/graphics/turnout/TurnoutDrawAssistant.ts b/src/graphics/turnout/TurnoutDrawAssistant.ts index 2c2e228..6cba510 100644 --- a/src/graphics/turnout/TurnoutDrawAssistant.ts +++ b/src/graphics/turnout/TurnoutDrawAssistant.ts @@ -199,7 +199,9 @@ class DragMoveAbsorbablePoint extends AbsorbablePoint { pointC: [C], } = dragTarget.datas; this.moveTarget = { - position: dragTarget.getGlobalPosition(), + position: dragTarget + .getGraphicApp() + .toCanvasCoordinates(dragTarget.getGlobalPosition()), portPos: [ dragTarget.localToCanvasPoint(A), dragTarget.localToCanvasPoint(B), @@ -234,7 +236,9 @@ class DragMoveAbsorbablePoint extends AbsorbablePoint { } else { if (this.moveTarget == undefined) { this.moveTarget = { - position: dragTarget.getGlobalPosition(), + position: dragTarget + .getGraphicApp() + .toCanvasCoordinates(dragTarget.getGlobalPosition()), portPos: [ dragTarget.localToCanvasPoint(dragTarget.getStartPoint()), dragTarget.localToCanvasPoint(dragTarget.getEndPoint()), @@ -443,6 +447,9 @@ export class TurnoutPointsInteractionPlugin extends GraphicInteractionPlugin