mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Clear lastVec in onBroadMouseDown
This commit is contained in:
parent
87e01639c0
commit
a9a8789af6
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue