diff --git a/src/SharedToolUtils/DrawUtils.ts b/src/SharedToolUtils/DrawUtils.ts index 9a8dd1c2a..38d6913a8 100644 --- a/src/SharedToolUtils/DrawUtils.ts +++ b/src/SharedToolUtils/DrawUtils.ts @@ -226,9 +226,9 @@ export function drawAtom(incomingAtom: AtomNode, color: string, currentAtom: boo 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(); }