diff --git a/src/core/math/shapes/Rectangle.js b/src/core/math/shapes/Rectangle.js index 4008b68..2958e07 100644 --- a/src/core/math/shapes/Rectangle.js +++ b/src/core/math/shapes/Rectangle.js @@ -80,9 +80,9 @@ return false; } - if (x >= this.x && x <= this.x + this.width) + if (x >= this.x && x < this.x + this.width) { - if (y >= this.y && y <= this.y + this.height) + if (y >= this.y && y < this.y + this.height) { return true; }