Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Spike] Different scroll behavior for top/bottom toolbar when Talkback is enabled #17676

Closed
Mugurell opened this issue Jan 28, 2021 · 5 comments
Assignees
Labels
access Accessibility: Talkback, HW keyboard/mouse, braile display etc. Feature:Toolbar Address bar, see also Feature:Search needs:UX-feedback Needs UX Feedback
Milestone

Comments

@Mugurell
Copy link
Contributor

Mugurell commented Jan 28, 2021

Seen while working on #10686

Currently with talkback enabled:

  • top toolbar does not animate
  • bottom toolbar does animate

Not sure if this is a bug or a workaround / something that should be kept or not.


Agreed specs are found in #1718 (comment)

  • If a user has accessibility services enabled and launches the app, we will set the default toolbar to be top (and FIXED not dynamic)
  • If a user enables accessibility services, fixed top toolbar will be enabled on the next app launch (unfortunately due to how we inflate the browser we only check if they're enabled when it's first created--do you think this is a major problem? It seems like this is a small edge case)
  • If a user with accessibility services goes into settings to change their toolbar it will respect what they select

Why blocking the dynamic behavior was discussed only for the top toolbar is probably because at that time the bottom toolbar was not scrollable. It was always in a fixed place. So if users had a11y services enabled but selected the toolbar to be placed at the bottom, the toolbar would be fixed in place by default.
Then when the dynamic behavior was implemented for the bottom toolbar I think this special a11y case was just overlooked.

┆Issue is synchronized with this Jira Task

@Mugurell Mugurell added the Feature:Toolbar Address bar, see also Feature:Search label Jan 28, 2021
@Mugurell Mugurell self-assigned this Jan 28, 2021
@Mugurell
Copy link
Contributor Author

Saw a ticket about having this behavior for the top toolbar but with no reasons as to why - #10026
Have yet to check if the behavior was consistent at that time or not.

@github-actions github-actions bot added the needs:triage Issue needs triage label Jan 28, 2021
@mcarare
Copy link
Contributor

mcarare commented Jan 28, 2021

@Mugurell The fixed top toolbar for enabled a11y was introduced from the first implementation of top toolbar in #6608.

val shouldUseFixedTopToolbar: Boolean
get() {
val accessibilityManager =
appContext.getSystemService(Context.ACCESSIBILITY_SERVICE) as? AccessibilityManager
return accessibilityManager?.isTouchExplorationEnabled ?: false
}

But I do not see any discussion as to why either.

@mcarare mcarare added the access Accessibility: Talkback, HW keyboard/mouse, braile display etc. label Jan 28, 2021
@Mugurell
Copy link
Contributor Author

Mugurell commented Jan 29, 2021

Proposed behavior:

  • If a user has accessibility services enabled and has not yet set the toolbar position to be at the bottom (although that is the default) or has set the toolbar position to be at the top:
    • the toolbar should be placed at top in a fixed position (this is the current behavior)
  • If a user has accessibility services enabled and has set the toolbar position to be at the bottom
    • the toolbar should be placed at the bottom in a fixed position (this is a difference to the current behavior)
  • In both cases the toolbar would be fixed in place ignoring the dynamic behavior set in app settings. (currently the a11y fixed top toolbar ignores the dynamic behavior set in app settings)

 
The first point - if user hasn't yet set a toolbar position

Asking @eeejay and UX to confirm the if the proposed behavior (ensuring the bottom toolbar would be fixed when using a11y)

@Mugurell Mugurell added the needs:UX-feedback Needs UX Feedback label Jan 29, 2021
@Mugurell Mugurell removed the needs:triage Issue needs triage label Feb 11, 2021
@eeejay
Copy link
Contributor

eeejay commented Feb 16, 2021

I think this behavior makes sense. The one issue I can think of is that two not great things can happen when the toolbar is at the bottom with TalkBack enabled:

  1. Either the UI layout will visually show the toolbar at the bottom, but talkback swipe order will first go through the toolbar before web content. This would be inconsistent with visual layout. Or..
  2. The swipe order will correctly put content before the toolbar. The issue then would be that users who don't use explore-by-touch will need to swipe a variable and potentially large amount of times to reach the toolbar depending on what content is displayed.

Honestly, I am fine with either outcome since that would be something the user explicitly opted in for in the settings.

@Mugurell
Copy link
Contributor Author

Closing after this was implemented in #18027

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
access Accessibility: Talkback, HW keyboard/mouse, braile display etc. Feature:Toolbar Address bar, see also Feature:Search needs:UX-feedback Needs UX Feedback
Projects
None yet
Development

No branches or pull requests

4 participants