From 74c04a354a91d8d98a921387e88cf165b26811f8 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Mon, 26 Oct 2015 19:24:48 -0600 Subject: [PATCH] Do not draw line up on first point of line --- src/elements/element.line.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elements/element.line.js b/src/elements/element.line.js index 73690d06d..f094dea6e 100644 --- a/src/elements/element.line.js +++ b/src/elements/element.line.js @@ -146,6 +146,11 @@ return; } + // If First point, move to the point ahead of time (so a line doesn't get drawn up the left axis) + if (!index) { + ctx.moveTo(point._view.x, point._view.y); + } + // Draw a bezier line to the point if (vm.tension > 0 && index) { ctx.bezierCurveTo( -- 2.47.3