From 9f1b8ec43f2b7b3b81269a62812a7008eb1dc36b Mon Sep 17 00:00:00 2001 From: pascald Date: Sat, 3 May 2025 00:28:58 +0200 Subject: [PATCH] final changes for better touch function --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 94c0843..e8e64da 100644 --- a/main.py +++ b/main.py @@ -76,7 +76,7 @@ case_images = {} def touch(event): global touch_start, touch_start_time - if event.type == pygame.FINGERDOWN: + if event.type == pygame.FINGERDOWN and not touch_start: touch_start = (event.x * SCREEN_WIDTH, event.y * SCREEN_HEIGHT) touch_start_time = time.time() return None