diff --git a/main.py b/main.py index 561e538..158f037 100644 --- a/main.py +++ b/main.py @@ -708,10 +708,10 @@ async def main(): running = False elif event.type == pygame.KEYDOWN or event.type == pygame.JOYBUTTONDOWN or event.type == pygame.JOYHATMOTION or event.type == pygame.FINGERDOWN or touch_start or (event.type == pygame.MOUSEBUTTONDOWN and event.button == 1): if state == 1: # PLAYING + result = None if pygame.FINGERUP and touch_start: result = touch(event) - else: - result = None + if is_LEFT_event(event) or result == "ontop": can_tip = current_case.length_units * UNIT_HEIGHT <= TRAILER_HEIGHT if current_case and current_case.allow_snap and can_use_tilt and can_tip: