Fix: Reset control points before freehand draw

master
cuixiping 2020-01-07 16:37:59 +08:00
parent 860dca4339
commit 471035c0da
1 changed files with 4 additions and 1 deletions

View File

@ -1910,11 +1910,14 @@ const mouseDown = function (evt) {
}
}
break;
} case 'fhellipse':
}
case 'fhellipse':
case 'fhrect':
case 'fhpath':
start.x = realX;
start.y = realY;
controllPoint1 = {x: 0, y: 0};
controllPoint2 = {x: 0, y: 0};
started = true;
dAttr = realX + ',' + realY + ' ';
// Commented out as doing nothing now: