diff --git a/Perspex/Rect.cs b/Perspex/Rect.cs index d8eec42eb2..b47904ae13 100644 --- a/Perspex/Rect.cs +++ b/Perspex/Rect.cs @@ -123,7 +123,7 @@ /// true if the point is in the bounds of the rectangle; otherwise false. public bool Contains(Point p) { - return p.X >= this.x && p.Y < this.x + this.width && + return p.X >= this.x && p.X < this.x + this.width && p.Y >= this.y && p.Y < this.y + this.height; }