From 9274b9677563b997d6521b6c2c700ce30847cdfe Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 11 Jun 2018 21:48:30 +0200 Subject: [PATCH] added being able to generally set global animations to passthrough clicks Before, the "passthrough_clicks" option was limited to allow mouse clicks on global animations to be passed through to the mouse sensitive screen controls, but not to other global animations. Now, stacked global animations can all receive mouse clicks if those global animations overlapping them are set to "passthrough_clicks". --- src/anim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/anim.c b/src/anim.c index 81441829..b6ee0b93 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1543,7 +1543,8 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, boolean clicked) if (!any_event_action && DoGlobalAnim_EventAction(part)) any_event_action = TRUE; - any_part_clicked = TRUE; + // determine if mouse clicks should be blocked from other animations + any_part_clicked = clickConsumed(part); if (isClickablePart(part, ANIM_EVENT_SELF)) { -- 2.34.1