mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix hit-testing on paths with a matrix that is not the identity.
This commit is contained in:
parent
97d94e8401
commit
5beb0f17ed
1 changed files with 1 additions and 1 deletions
|
@ -1861,7 +1861,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
// Don't process loc yet, as we also need to query for stroke after fill
|
||||
// in some cases. Simply skip fill query if we already have a matching
|
||||
// stroke.
|
||||
return !loc && options.fill && this.hasFill() && this.contains(point)
|
||||
return !loc && options.fill && this.hasFill() && this._contains(point)
|
||||
? new HitResult('fill', this)
|
||||
: loc
|
||||
// TODO: Do we need to transform loc back to the coordinate
|
||||
|
|
Loading…
Reference in a new issue