From bd267cd0cbf68d8a9264033c46eda7931d614f68 Mon Sep 17 00:00:00 2001 From: stjet <49297268+stjet@users.noreply.github.com> Date: Sat, 8 Feb 2025 19:13:06 +0000 Subject: [PATCH] fix --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index ea41e9c..11504ad 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -154,6 +154,6 @@ pub fn point_inside(point: Point, top_left: Point, size: Dimensions) -> bool { let y2 = top_left[1]; let x3 = x2 + size[0]; let y3 = y2 + size[1]; - x >= x2 && y >= x2 && x <= x3 && y <= y3 + x >= x2 && y >= y2 && x <= x3 && y <= y3 }