From 8d3ec0faa03cf7db5057b39aa44f1d9b55289c78 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 7 Feb 2020 19:23:11 +1100 Subject: [PATCH] Fix menu buttons staying highlighted when touch is released on mobile --- src/Input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Input.c b/src/Input.c index b58ff65e3..aa17aee9a 100644 --- a/src/Input.c +++ b/src/Input.c @@ -149,9 +149,8 @@ void Input_RemoveTouch(long id, int x, int y) { CheckBlockTap(i); /* found the touch, remove it */ + Pointer_SetPosition(i, -100000, -100000); touches[i].type = 0; - Pointers[i].x = -100000; - Pointers[i].y = -100000; if ((i + 1) == Pointers_Count) Pointers_Count--; return;