mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Only test for fill in Item#_hitTest() if options.fill is set.
This commit is contained in:
parent
f466473bfb
commit
588abe7189
1 changed files with 1 additions and 1 deletions
|
@ -1449,7 +1449,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
for (var i = this._children.length - 1, res; i >= 0; i--)
|
||||
if (res = this._children[i].hitTest(point, options))
|
||||
return res;
|
||||
} else if (this.hasFill() && this._contains(point)) {
|
||||
} else if (options.fill && this.hasFill() && this._contains(point)) {
|
||||
return new HitResult('fill', this);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue