From 471035c0da2471ce52e3debed694bbb9962a4d90 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Tue, 7 Jan 2020 16:37:59 +0800 Subject: [PATCH] Fix: Reset control points before freehand draw --- editor/svgcanvas.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index f0a24e5f..2e8213d5 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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: