mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Include point property in stroke hit-results.
This commit is contained in:
parent
25d8b1f0d2
commit
d176acfc53
1 changed files with 6 additions and 1 deletions
|
@ -1896,7 +1896,12 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
return !loc && hasFill && this._contains(point) || loc && !hasStroke
|
||||
? new HitResult('fill', this)
|
||||
: loc
|
||||
? new HitResult('stroke', this, { location: loc })
|
||||
? new HitResult('stroke', this, {
|
||||
location: loc,
|
||||
// It's fine performance wise to call getPoint() again
|
||||
// since it was already called before.
|
||||
point: loc.getPoint()
|
||||
})
|
||||
: null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue