From cea4e26ad1e2d5d480ce493e4c23add1ba7f8506 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 24 May 2021 22:30:43 +1000 Subject: [PATCH] Web: Fix can't scroll in inventory anymore (Thanks Fam0r) --- src/Input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Input.c b/src/Input.c index f63855690..eafeca9f4 100644 --- a/src/Input.c +++ b/src/Input.c @@ -69,13 +69,12 @@ static cc_bool AnyBlockTouches(void) { static void ClearTouches(void) { int i; for (i = 0; i < INPUT_MAX_POINTERS; i++) touches[i].type = 0; - Pointers_Count = 0; + Pointers_Count = Input_TouchMode ? 0 : 1; } void Input_SetTouchMode(cc_bool enabled) { - ClearTouches(); Input_TouchMode = enabled; - Pointers_Count = enabled ? 0 : 1; + ClearTouches(); } static cc_bool MovedFromBeg(int i, int x, int y) {