Fixed drawing first stroke point

This commit is contained in:
Luis Leiva 2017-11-07 08:32:12 +01:00
parent 924b50263e
commit c1ba4fe577
2 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@
var p = getMousePos(e);
// Mark visually 1st point of stroke.
if (options.graphics.firstPointSize > 0) {
data.sketch.fillCircle(p.x, p.y, options.graphics.firstPointSize);
data.sketch.beginFill(options.graphics.fillStyle).fillCircle(p.x, p.y, options.graphics.firstPointSize).endFill();
}
// Ensure that coords is properly initialized.
if (!data.coords[idx]) {

View File

@ -406,7 +406,7 @@
var p = getMousePos(e);
// Mark visually 1st point of stroke.
if (options.graphics.firstPointSize > 0) {
data.sketch.fillCircle(p.x, p.y, options.graphics.firstPointSize);
data.sketch.beginFill(options.graphics.fillStyle).fillCircle(p.x, p.y, options.graphics.firstPointSize).endFill();
}
// Ensure that coords is properly initialized.
if (!data.coords[idx]) {