From 2fa213db7834f6b11e87d220292cca137b6d7c7a Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Sat, 16 Dec 2023 03:26:52 -0300 Subject: [PATCH] Make sure that we check that the items are actually hovered Fixes #147 --- LemonUI/Menus/NativeMenu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LemonUI/Menus/NativeMenu.cs b/LemonUI/Menus/NativeMenu.cs index d4bc6ab..479acc0 100644 --- a/LemonUI/Menus/NativeMenu.cs +++ b/LemonUI/Menus/NativeMenu.cs @@ -1282,7 +1282,7 @@ private void ProcessControls() } // If the cursor is inside of the selection rectangle - if (GameScreen.IsCursorInArea(item.title.Position.X - itemOffsetX, item.title.Position.Y - itemOffsetY, Width, itemHeight)) + if (item.IsHovered) { if (item is NativeSpacerItem) {