Clear lastVec in onBroadMouseDown

This commit is contained in:
adroitwhiz 2020-04-19 20:44:33 -04:00
parent 87e01639c0
commit a9a8789af6

View file

@ -34,6 +34,7 @@ class BroadBrushHelper {
onBroadMouseDown (event, tool, options) {
this.steps = 0;
this.smoothed = 0;
this.lastVec = null;
tool.minDistance = Math.min(5, Math.max(2 / paper.view.zoom, options.brushSize / 2));
tool.maxDistance = options.brushSize;
if (event.event.button > 0) return; // only first mouse button