mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Fix bug in 'stroke' hit-results.
This commit is contained in:
parent
b1a2a626ad
commit
0a7f5a12a5
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
loc = this.getNearestLocation(point, matrix);
|
||||
if (loc && loc._distance <= radius)
|
||||
return options.stroke
|
||||
? new HitResult('stroke', this, { location: location })
|
||||
? new HitResult('stroke', this, { location: loc })
|
||||
: new HitResult('fill', this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue