Skip to content

Scroll a full viewport per screen reader scroll action instead of 80% - #193540

Draft
LouiseHsu wants to merge 3 commits into
flutter:masterfrom
LouiseHsu:a11y-scroll-factor-1
Draft

LouiseHsu wants to merge 3 commits into
flutter:masterfrom
LouiseHsu:a11y-scroll-factor-1

Conversation

@LouiseHsu

@LouiseHsu LouiseHsu commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #193541

When VoiceOver is on, swiping with 3 fingers only scrolls 80% of the screen length, compared to native iOS, which traverses 100% of the screen height. This came up when I was working on #193384 That PR makes VoiceOver announce "page x of y" after a scroll, using the same page math as UIKit, where one page is one full screen. With an 80% step, the swipes and the page count don't line up. Sometimes one swipe announces the same page twice, so it sounds like the swipe didn't do anything. But even without that PR, you can see the discrepancy here. The native app takes 3 swipes to get from top to bottom, while flutter takes 4.

Before

before.flutter.voiceover.scroll.mov

Native

native.voiceover.scroll.mov

After

after.flutter.voice.over.scroll.mov

RenderSemanticsGestureHandler.scrollFactor has defaulted to 0.8 since the
original semantics implementation (flutter#1309). Native iOS scrolls exactly one
visible screen per VoiceOver three-finger swipe, so page announcements drift
from swipe count. Draft to measure test fallout.
@LouiseHsu LouiseHsu added the CICD Run CI/CD label Sep 30, 2026
@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 30, 2026
cbracken
cbracken previously approved these changes Sep 30, 2026

@cbracken cbracken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to test but not land... I'm just gonna put this on here now to save time:

Animated GIF of a delivery truck approaching a highway overpass, then failing to meet the height clearance requirement and crashing into it

@github-actions github-actions Bot added the a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) label Sep 30, 2026
@LouiseHsu
LouiseHsu marked this pull request as ready for review September 30, 2026 02:23
@LouiseHsu LouiseHsu changed the title [TEST] Scroll a full viewport per screen reader scroll action in stead of 80% [TEST][DO NOT MERGE] Scroll a full viewport per screen reader scroll action instead of 80% Sep 30, 2026
gemini-code-assist[bot]

This comment was marked as low quality.

@cbracken cbracken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM stamp from a Japanese personal seal

@cbracken cbracken changed the title [TEST][DO NOT MERGE] Scroll a full viewport per screen reader scroll action instead of 80% Scroll a full viewport per screen reader scroll action instead of 80% Sep 30, 2026
@LouiseHsu LouiseHsu added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 30, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 30, 2026
@auto-submit

auto-submit Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/193540, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jmagman jmagman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there's more robust ways to do this than another hard coded integer, let's discuss more with the framework team about the right way to do this before merging.

From a chat discussion:

There is a way to have the screen reader scroll by whatever amount the native code wants. @Renzo-Olivares added this capability last year for the web. On the web the browser + OS + screen reader dictate how far to scroll, and the scroll delta/position is communicated through an semantic action sent to the framework.

@hannah-hyj hannah-hyj added the team-ios Owned by iOS platform team label Oct 28, 2026
@LouiseHsu

Copy link
Copy Markdown
Contributor Author

#195722
That PR needs to land before this PR, because landing this PR by itself exacerbates the bug that #195722 is fixing

@LouiseHsu LouiseHsu mentioned this pull request Nov 3, 2026
10 of 11 tasks
@LouiseHsu
LouiseHsu marked this pull request as draft November 12, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels. team-ios Owned by iOS platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[a11y][iOS] VoiceOver scroll move 80% of the viewport, while native iOS moves a full screen

4 participants