final changes for better touch function

This commit is contained in:
putschgi committed 2025-05-03 01:09:29 +02:00
1 parent 019f4da916
commit 3542a79060
1 file changed
+1
+1
View File
@@ -713,6 +713,7 @@ async def main():
result = None result = None
if pygame.FINGERUP and touch_start: if pygame.FINGERUP and touch_start:
result = await touch(event) result = await touch(event)
print(result)
if await is_LEFT_event(event) or result == "ontop": if await is_LEFT_event(event) or result == "ontop":
can_tip = current_case.length_units * UNIT_HEIGHT <= TRAILER_HEIGHT can_tip = current_case.length_units * UNIT_HEIGHT <= TRAILER_HEIGHT