Skip to content

Pointer actions at coordinates outside the screenshot, and scrolls that moved nothing, answer success (false success) #328

Closed

Description

@SSFSKIM

Defect

False success. The engine answers success for pointer actions that did nothing, or that were aimed outside the window.

1. Coordinates outside the screenshot are not checked

screenshotPoint (Screenshot.swift) accepts any coordinate, even one outside the screenshot.

2. A scroll is never confirmed

In the #328 spike, all 102 of main's answered scroll cells came back success, including every one that moved nothing.

One surface truly ignores the posted wheel: System Settings' content pane, 0 of 16. Writing its scroll bar's AXValue moves it.

The posted wheel itself is correct when it is aimed in bounds. It is the vendor's route, and it scrolled exactly as requested in background AppKit, SwiftUI, Catalyst, Safari, Chrome and Firefox: 1,977 trials, 0 raises.

Ruling (design session b1921fc3)

  1. Refuse every pointer action at a point outside the screenshot, before anything is posted, with a new error. This covers a click, a scroll, a drag's start, and every drag point including its end.
  2. Confirm every scroll by reading the hit's scroll container before and after: the bar's AXValue, the content frame, and one descendant.
  3. Fall back when nothing moved: if the bar is settable and not at its end, write the bar's AXValue by the delta, then confirm again. Never on a container other than the hit's.
  4. Answers:
    • moved: success, with the move in the meta;
    • at the end: success, with the text and atEnd;
    • otherwise: scrollUnconfirmed.

Gates before the PR:

  • the still-page click and drag sweep shows 0 new refusals at in-bounds points;
  • repl-parity stays green;
  • no false scrollUnconfirmed on scrollers that really moved: nested overflow div, iframe, horizontal, smooth-scrolling;
  • the fallback is never written at the bar's end, nor on another container.

Evidence

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 8, 2026
  2. SSFSKIM commented on Nov 8, 2026

    @SSFSKIM
    OwnerAuthor

    Spike findings: AppKit doesn't drop the scroll; the engine answers success without checking

    Main 81a4309, on hosted macOS. Kit probe/328-measure (e180456). Runs:

    Why #324's scrolls failed

    #324's 0 of 24 were aimed below their windows. For a long text, the centre of the text area's frame lies past the window's bottom.

    • screenshotPoint accepts any coordinate, even one outside the screenshot, and the wheel was posted outside the window.
    • Main answered success every time: 102 of 102 scroll cells, including every one that moved nothing.

    Main's posted wheel works when aimed inside the window

    It is the vendor's route. It scrolled exactly 120 of 120 pt in background AppKit, SwiftUI, Catalyst, Safari, Chrome and Firefox. In 1,977 background trials there were 0 raises and 0 key-window changes.

    The one real non-delivery

    System Settings' content pane: 0 of 16, across every way of posting to its process. Writing the scroll bar's AXValue moves it, to within 1 pt.

    Confirming a scroll is possible

    Read the scroll area's bar, its content frame and one descendant, before and after the scroll. That caught 808 of 808 moves, with 0 phantoms. The first move showed in 50 ms at p50 and 101 ms at p95. At the end of the content the bar reads 1.0 both before and after, so "at the end" can be told apart from "didn't arrive".

    Proposal (awaiting the design session's ruling)

    • Refuse coordinates outside the screenshot.
    • Confirm every scroll, with the bar write as a fallback.
    • Answer scrollUnconfirmed, never success, when nothing moved.

    Sminos-Session: cursor235#b93055dd (cua on macbook)

  3. changed the title [-]AppKit: a shared-mode posted scroll into a background window doesn't scroll (TextEdit, NSTextView 0 of 24; Safari 16 of 16)[/-] [+]Pointer actions at coordinates outside the screenshot, and scrolls that moved nothing, answer success (false success)[/+] on Nov 8, 2026
  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 9, 2026
  5. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #338: out-of-screenshot refusal + scroll confirm; gates a/b/c passed on hosted (sidebar no-op write accepted as limit, 8d00d2ba); reviewer-high CORRECT after 7 rounds; ci-gate GREEN

  6. removed
    status:in-review
    on Nov 9, 2026
  7. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #338 (0.27.13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions