update orient

This commit is contained in:
better629 2024-01-27 17:17:53 +08:00
parent 9c8cf9cdce
commit 305de41d01
3 changed files with 18 additions and 15 deletions

View file

@ -104,7 +104,7 @@ class ScreenshotParse(Action):
return
elif isinstance(op_param, SwipeOp):
x, y = elem_bbox_to_xy(elem_list[op_param.area - 1].bbox)
res = env.step(EnvAPIAbstract("user_swipe", kwargs={"x": x, "y": y, "dir": op_param.swipe_orient, "dist": op_param.dist}))
res = env.step(EnvAPIAbstract("user_swipe", kwargs={"x": x, "y": y, "orient": op_param.swipe_orient, "dist": op_param.dist}))
if res == ADB_EXEC_FAIL:
# TODO
return