From 4a0a83bf62eaebc5516c2ed1a56577fcc5c2960a Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 11 Jun 2020 18:01:55 -0400 Subject: [PATCH] Fix the horizontal scale using your vertical position --- macrovision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macrovision.js b/macrovision.js index d690c6ce..0a817638 100644 --- a/macrovision.js +++ b/macrovision.js @@ -463,7 +463,7 @@ function drawHorizontalScale(ifDirty = false) { return; function drawTicks(/** @type {CanvasRenderingContext2D} */ ctx, pixelsPer, heightPer) { let total = heightPer.clone(); - total.value = math.unit(config.y, "meters").toNumber(config.unit) * ctx.canvas.width / ctx.canvas.height; + total.value = math.unit(config.x, "meters").toNumber(config.unit) * ctx.canvas.width / ctx.canvas.height; for (let x = ctx.canvas.clientWidth - 50; x >= 50; x -= pixelsPer) { drawTick(ctx, x, 50, total); total = math.add(total, heightPer);