From: Holger Schemel Date: Wed, 18 Sep 2019 21:28:08 +0000 (+0200) Subject: added additional check for handling gadgets from button events X-Git-Tag: 4.1.4.0~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f93b88d332d24f32bbd5030cf8dec20fdb8d5ea9;p=rocksndiamonds.git added additional check for handling gadgets from button events --- diff --git a/src/events.c b/src/events.c index eaa87c00..6054f740 100644 --- a/src/events.c +++ b/src/events.c @@ -1680,6 +1680,10 @@ void HandleButton(int mx, int my, int button, int button_nr) strEqual(setup.touch.control_type, TOUCH_CONTROL_FOLLOW_FINGER) || (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS) && !CheckVirtualButtonPressed(mx, my, button))); + + // always recognize potentially releasing already pressed gadgets + if (button == MB_RELEASED) + handle_gadgets = TRUE; #endif if (HandleGlobalAnimClicks(mx, my, button, FALSE))