File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,11 +277,12 @@ class BroadBrushHelper {
277277 delta = new paper . Point ( delta . x , 0 ) ;
278278 }
279279
280+ const constraintPoint = this . lastPoint . add ( delta ) ;
280281 const step = delta . normalize ( options . brushSize / 2 ) ;
281282 step . angle += 90 ;
282283
283- const top = event . point . add ( step ) ;
284- const bottom = event . point . subtract ( step ) ;
284+ const top = constraintPoint . add ( step ) ;
285+ const bottom = constraintPoint . subtract ( step ) ;
285286 this . finalPath . add ( top ) ;
286287 this . finalPath . insert ( 0 , bottom ) ;
287288 }
@@ -292,7 +293,7 @@ class BroadBrushHelper {
292293 }
293294 const handleVec = delta . normalize ( options . brushSize / 2 ) ;
294295 this . finalPath . add ( new paper . Segment (
295- event . point . add ( handleVec ) ,
296+ constraintPoint . add ( handleVec ) ,
296297 handleVec . rotate ( 90 ) ,
297298 handleVec . rotate ( - 90 )
298299 ) ) ;
You can’t perform that action at this time.
0 commit comments