Do not draw line up on first point of line

This commit is contained in:
Tanner Linsley 2015-10-26 19:24:48 -06:00
parent dac859ec1c
commit 74c04a354a

View File

@ -146,6 +146,11 @@
return; 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 // Draw a bezier line to the point
if (vm.tension > 0 && index) { if (vm.tension > 0 && index) {
ctx.bezierCurveTo( ctx.bezierCurveTo(