diff --git a/src/input.zig b/src/input.zig index 8252b84..b294260 100644 --- a/src/input.zig +++ b/src/input.zig @@ -36,8 +36,8 @@ pub const Mouse = packed struct { } pub fn in(this: @This(), origin: Point, size: Point) bool { - return this.x >= origin.x and this.x <= size.x + origin.x and - this.y >= origin.y and this.y <= size.y + origin.y; + return this.x >= origin.x and this.x < size.x + origin.x and + this.y >= origin.y and this.y < size.y + origin.y; } };