From ddd9226e9e919a6112dce9145c88b5fa40ee620f Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Fri, 2 Feb 2024 22:28:57 -0500 Subject: [PATCH] Fix Button Hover --- mods/src/touch/touch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/src/touch/touch.cpp b/mods/src/touch/touch.cpp index dd4de2eaf4..d88352e061 100644 --- a/mods/src/touch/touch.cpp +++ b/mods/src/touch/touch.cpp @@ -29,7 +29,7 @@ static int32_t Button_hovered_injection(__attribute__((unused)) Button *button, int32_t button_y2 = button_y1 + button->height; // Check - return x >= button_x1 && x <= button_x2 && y >= button_y1 && y <= button_y2; + return x >= button_x1 && x < button_x2 && y >= button_y1 && y < button_y2; } static void LargeImageButton_render_GuiComponent_drawCenteredString_injection(GuiComponent *component, Font *font, std::string *text, int32_t x, int32_t y, int32_t color) { // Change Color On Hover