mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Path#_hitTest: check that a stroke hit test was requested.
This commit is contained in:
parent
611d9e3af3
commit
53a602fb56
1 changed files with 1 additions and 1 deletions
|
@ -1248,7 +1248,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
&& this.getFillColor() && this.contains(point, matrix))
|
||||
return new HitResult('fill', this);
|
||||
// Now query stroke if we haven't already
|
||||
if (!loc && radius > 0)
|
||||
if (!loc && options.stroke && radius > 0)
|
||||
loc = this.getNearestLocation(point, matrix);
|
||||
if (loc && loc._distance <= radius)
|
||||
return options.stroke
|
||||
|
|
Loading…
Reference in a new issue