final changes for better touch function
This commit is contained in:
1
main.py
1
main.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user