Use #roughBounds rather than #bounds in #contains() check.

This commit is contained in:
Jürg Lehni 2011-07-09 09:27:54 +02:00
parent 5e70b106c9
commit 74b23c1882

View file

@ -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