Skip to content

Commit a118b14

Browse files
authored
fix
1 parent b6998b8 commit a118b14

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/helper/blob-tools/broad-brush-helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ class BroadBrushHelper {
258258
}
259259

260260
let delta = this.lastVec;
261+
let constraintPoint = event.point;
261262

262263
// If the mouse up is at the same point as the mouse drag event then we need
263264
// the second to last point to get the right direction vector for the end cap
@@ -277,7 +278,7 @@ class BroadBrushHelper {
277278
delta = new paper.Point(delta.x, 0);
278279
}
279280

280-
const constraintPoint = this.lastPoint.add(delta);
281+
constraintPoint = this.lastPoint.add(delta);
281282
const step = delta.normalize(options.brushSize / 2);
282283
step.angle += 90;
283284

0 commit comments

Comments
 (0)