From 6ca233d4d71331460af0443bf5b307f16c6fe069 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 22 May 2022 13:35:15 +0200 Subject: [PATCH] fixed another problem with leaving scores screen on Android platform On Android, when touching the screen anywhere in the hall of fame after playing a game, this should either start the next game or return to the main menu. However, this is done when touching the screen with "finger down", not with "finger up again", sending an additional "release" event in the main menu, triggering the menu entry under the finger. This fix triggers leaving the hall of fame on the "release" event only. --- src/screens.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens.c b/src/screens.c index 98cb6ba9..ee5035ce 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4816,8 +4816,8 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button, // directly continue when touching the screen after playing if ((mx || my) && scores.continue_on_return) { + // ignore touch events until released mx = my = 0; - button = MB_MENU_CHOICE; } #endif -- 2.34.1