mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Use #roughBounds rather than #bounds in #contains() check.
This commit is contained in:
parent
5e70b106c9
commit
74b23c1882
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
|
||||
contains: function(point, matrix) {
|
||||
point = Point.read(arguments);
|
||||
if (!this._closed || !this.getBounds(matrix).contains(point))
|
||||
if (!this._closed || !this.getRoughBounds(matrix).contains(point))
|
||||
return false;
|
||||
// Use the crossing number algorithm, by counting the crossings of the
|
||||
// beam in right y-direction with the shape, and see if it's an odd
|
||||
|
|
Loading…
Reference in a new issue