From 9ea50148b8a02a74befbcbc618a6a7dca7643316 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 6 Aug 2026 22:26:25 +0300 Subject: [PATCH] fix double click behaviour --- src/graphics/ui/GUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/ui/GUI.cpp b/src/graphics/ui/GUI.cpp index 8f0f60520..6169a2578 100644 --- a/src/graphics/ui/GUI.cpp +++ b/src/graphics/ui/GUI.cpp @@ -188,8 +188,8 @@ void GUI::actMouse(Frame& frame, float delta, const CursorState& cursor) { doubleClicked = true; } else { pressed->click(cursorPos.x, cursorPos.y); + doubleClickTimer = 0.0f; } - doubleClickTimer = 0.0f; if (focus && focus != pressed) { focus->defocus(); }