docs(adr): correct ADR 0031 pointer event delivery evidence

Merged
TH
2mo ago
+19-8

Summary

Corrects the evidence in ADR 0031 for "pointer actions have no event fallback". The original measurement posted a bare CGEventPostToPid that named no window. A re-measurement against a background AppKit, SwiftUI and WKWebView fixture found that window fields decide delivery, not the API. With the window number in event field 51, plus field 58 or a window-local location, the public CGEventPostToPid delivered click, double-click and secondary click 54 of 54 times. The app was not activated and the frontmost app did not change. Posting through SkyLight added nothing. Drags and WKWebView button clicks still needed the private focus-without-raise activation.

The decision is unchanged: there is still no event fallback, because a dropped post reports success. The ADR now states that condition and the remaining evidence gaps. The SkyLight rejected-alternative entry is updated with the measured results. The follow-up work is item 13 in #3213. Measurements and the minimal reproduction: https://github.com/callstack/agent-device/issues/3213#issuecomment-6003038885

1 file touched (docs only).

Refs #3213

Validation

  • pnpm check:affected --run on aa988b0f4b: docs-only, no checks selected, passed.
  • Runtime validation does not apply because no code changed. The evidence comes from the throwaway fixture runs linked above (macOS 26.6.2, Accessibility granted to the posting process).