iOS: scroll down --until stops before the end on SwiftUI List (0 passes) and ScrollView

Đang mở
#4,216 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
70/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, swift, typescript
Lĩnh vực
mobile, testing

Hướng nghiên cứu

Start by tracing the iOS scroll down --until path through scroll_until_edge_reached and how it reads accessibility snapshots for scrollable content. Use the linked reproduction app and its list.ad, sheet.ad, and scrollview.ad replays to compare the three cases. Done means the selector becomes visible before stopping, or scrolling stops only when content truly stops moving.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

On iOS, scroll down --until '<selector>' gives up on SwiftUI lists that plain scroll down scrolls through fine.

Repro: https://github.com/antFrancon/agent-device-scroll-until-repro (./repro.sh [version]). It's a one-file SwiftUI app showing the same 64 rows three ways, with one .ad per way, each running scroll down --until 'id="row-60"'.

Replay Rows in Result
list.ad a List, pushed fails after 0 passes: "scroll down reached the end of the scrollable content … without id="row-60" becoming visible"
sheet.ad the same List in a .sheet fails after 0 passes, same message
scrollview.ad a ScrollView + LazyVStack, pushed fails after 3 passes, same message, with rows 53–63 still below

Plain scroll down reaches row-60 in all three: 7 flings for the list, 8 for the sheet, 4 for the scroll view.

Likely cause for the List: it reaches the snapshot as [collection] with no [scrollable], so --until sees no scrollable content and never swipes (scroll_until_edge_reached, passes: 0, nothing dispatched). The ScrollView is [scroll-area] [scrollable], but end detection still trips one pass early.

Expected: --until keeps scrolling until the selector is visible or the content truly stops moving.

Seen on: agent-device 0.21.28, 0.21.36 and 0.21.37-nightly.20261103.128 (identical results) · iOS 26.5 simulator, iPhone 16 · Xcode 27.2 (27B52) · macOS 27.0 · Node 22.22.1

Ngôn ngữ chính
TypeScript
Star
5.3k
Fork
377
Merge trung bình
13 giờ 49 phút
Pull request đã merge (30 ngày)
650

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstack/agent-device

Tất cả issue của callstack/agent-device

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.