diff --git a/src/SharedToolUtils/DrawUtils.ts b/src/SharedToolUtils/DrawUtils.ts index dc100a2a..9fc8a152 100644 --- a/src/SharedToolUtils/DrawUtils.ts +++ b/src/SharedToolUtils/DrawUtils.ts @@ -98,9 +98,9 @@ export function drawAtom(thisAtom: AtomNode, color: string, currentAtom: Boolean export function drawGuidelines(original: Point, current: Point, color: string): void { ctx.beginPath(); ctx.strokeStyle = color; - const dx: number = original.x - current.x + offset.x; - const dy: number = original.y - current.y + offset.y; - ctx.rect(original.x, original.y, -dx, -dy); + const dx: number = original.x - current.x; + const dy: number = original.y - current.y; + ctx.rect(original.x + offset.x, original.y + offset.y, -dx, -dy); ctx.stroke(); }