From ee8086c220663ad470ed61b1cef90eeb66be5cb1 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 11 Jun 2018 20:11:51 +0200 Subject: [PATCH] added ignoring gadgets if click already caused animation event action Before, even though executing more than one event action triggered by clickable global animations was already prevented, further processing of mouse clicks by gadgets at the same position was still performed if the global animation style was set to "passthrough_clicks", which could lead to more than one gadgets being triggered at the same time by a single click on a clickable global animation, with potentially unwanted side effects. Now, mouse clicks that already triggered an event action (which could be a gadget) are not processed by the standard gadget handling anymore. --- src/anim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anim.c b/src/anim.c index a38a1c3d..50cbba7b 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1601,7 +1601,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) } } - return anything_clicked; + return (anything_clicked || any_event_action); } static void ResetGlobalAnim_Clickable() -- 2.34.1