Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Aug 4, 2018

When a user navigates to the end of a visible viewport, there are two behaviors that Talkback supports: 1) it can attempt to scroll the next element from the current viewport into view, like in a List or 2) it can continue the a11y traversal as if the offscreen elements aren't there.

The latter behavior isn't exposed by us, but is necessary for a widget such as a TabBar - with implicit scrolling enabled a user would have to navigate to the end of the scrollable tabs before they can navigate into the tab body. With this change, we can configure it such that reaching the end of the visible tabs will immediately move to the tab body instead.

We already have this information on the framework side with https://master-docs-flutter-io.firebaseapp.com/flutter/widgets/ScrollPhysics/allowImplicitScrolling.html

Fixes #19917

@jonahwilliams jonahwilliams changed the title [WIP] use scrollPhysics.allowImplicitScrolling to configure scrollable semantics Use scrollPhysics.allowImplicitScrolling to configure scrollable semantics Aug 7, 2018
@gspencergoog
Copy link
Contributor

How does one get to the end of a tab bar that has too many items to fit on screen? This sounds like once it gets to the last visible tab, it jumps to the tab body, but what if the tab bar has a bunch of tabs that are offscreen, but scrollable into view? How would I know that as an accessible interface user?

@gspencergoog
Copy link
Contributor

gspencergoog commented Aug 7, 2018

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d
(although I would like to know what happens vis a vis my question above)

@jonahwilliams
Copy link
Contributor Author

@gspencergoog you need to explicitly scroll with two fingers on either the tab body or the page

@jonahwilliams
Copy link
Contributor Author

The tab bar labels also describe 3 of N, 4 of N

@gspencergoog
Copy link
Contributor

Got it. Cool. Sounds like a good change.

@jonahwilliams jonahwilliams merged commit b32c77a into flutter:master Aug 8, 2018
@jonahwilliams jonahwilliams deleted the implicit_scroll_semantics branch August 8, 2018 00:10
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swiping through widgets with Talkback changes the Tab on Android

3 participants