修改测量页面线路列表滑动范围

This commit is contained in:
2026-03-06 18:24:02 +08:00
parent 4cc6a3391f
commit 78bfda1ced
12 changed files with 17183 additions and 17183 deletions

View File

@@ -44,15 +44,15 @@ class ScreenshotPage:
if direction == "down":
# 向下滑动
start_y = list_container.location['y'] + list_container.size['height'] * 0.95
end_y = list_container.location['y'] + list_container.size['height'] * 0.05
start_y = list_container.location['y'] + list_container.size['height'] * 0.90
end_y = list_container.location['y'] + list_container.size['height'] * 0.1
self.logger.info("向下滑动列表")
else:
# 向上滑动
# 记录滑动前的项目,用于判断是否滑动到顶
before_scroll_items = self.get_current_items()
start_y = list_container.location['y'] + list_container.size['height'] * 0.05
end_y = list_container.location['y'] + list_container.size['height'] * 0.95
start_y = list_container.location['y'] + list_container.size['height'] * 0.1
end_y = list_container.location['y'] + list_container.size['height'] * 0.90
self.logger.info("向上滑动列表")
# 执行滑动