final changes for better touch function

This commit is contained in:
2025-05-03 01:09:29 +02:00
parent 019f4da916
commit 3542a79060

View File

@@ -713,6 +713,7 @@ async def main():
result = None
if pygame.FINGERUP and touch_start:
result = await touch(event)
print(result)
if await is_LEFT_event(event) or result == "ontop":
can_tip = current_case.length_units * UNIT_HEIGHT <= TRAILER_HEIGHT