Repository navigation
Report only the text view's visible part to VoiceOver - #210
Merged
Merged
Conversation
Member
|
@luca-chen198 feel free to test again/ merge would like to move forward here |
Nicolas-Py
approved these changes
Nov 2, 2026
VoiceOver scrolls an element taller than the viewport until its top sits about 35 pt under the scroll area's top. The text starts below the header band, so the page moved about 75 pt whenever the VoiceOver cursor landed on the text: after turning VoiceOver on, after a click, after switching documents. Clipping the accessibility frame to the viewport leaves VoiceOver nothing to scroll; line and range bounds are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
luca-chen198
force-pushed
the
fix/voiceover-scroll-jump
branch
from
November 6, 2026 14:21
55813e2 to
67a85ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VoiceOver moved the text about 75 pt whenever its cursor landed on it (turning VoiceOver on, a click, a document switch).
Cause (measured): VoiceOver scrolls an element taller than the viewport by writing the scroll bar's value (
NSScroller accessibilitySetValueAttribute:) until the element's top sits about 35 pt under the scroll area's top. The text starts below the header band, so it scrolled the band away. AppKit converts the value correctly; the target is VoiceOver's own.Fix:
NativeTextView.accessibilityFrame()returns the frame clipped to the viewport (content insets excluded), so the element always fits and VoiceOver has nothing to scroll. Line and range bounds are unchanged.Tested: live in Nodes with VoiceOver on (top of a long note, mid-note, after leaving and re-entering the text): no scroll bar writes, no jump.
swift test --no-parallel: 615 tests pass.🤖 Generated with Claude Code