projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71664f4
)
added additional check for handling gadgets from button events
author
Holger Schemel
<info@artsoft.org>
Wed, 18 Sep 2019 21:28:08 +0000
(23:28 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 18 Sep 2019 21:28:08 +0000
(23:28 +0200)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index eaa87c00989d9ed5379db662e3276071df20998d..6054f74097006ca8d9b0140424f867b71b173da2 100644
(file)
--- 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))