Skip to content

Fix the attach button being unreachable by touch exploration - #2002

Open
mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-attach-button-under-send-container
Open

mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-attach-button-under-send-container

Conversation

@mehranlatifi83

@mehranlatifi83 mehranlatifi83 commented Jul 31, 2026 •

Copy link
Copy Markdown

Summary

With nothing typed, exploring the message bar by touch where the attach button is drawn lands on the record voice message button, and a long press there opens the send options instead of the attach menu. Moving by swipe reaches the attach button correctly, so only exploring by touch is affected.

The container of the send button is 100dp wide and sits over the attach button next to it, while the button shown inside it is only as wide as itself. Touch and hover therefore stop at the container wherever the attach button is, and a long press on the container is what a screen reader is given to reach the send options.

Let the container take touch and hover only where a button of its own is shown, so what is touched is what is drawn. While recording it keeps taking everything over it, since its button is faded out and the recording circle takes its place there.

Checking it

With TalkBack on, in a chat with something typed in the box, drag a finger over the attach button next to the send button.

Before, the touch landed on the send button, since its container reaches over what is drawn beside it, and a long press there opened the send options. Now what is touched is what is drawn.

Swiping found the attach button correctly before this, which is why only exploring by touch was affected.

@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch 3 times, most recently from e2e7c71 to d213821 Compare August 3, 2026 17:15
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch 2 times, most recently from 05bc60f to a42d018 Compare August 29, 2026 19:07
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch from a42d018 to 3d7427d Compare September 18, 2026 09:50
The container of the send button is wider than the button shown in it and
reaches over the attach button next to it. Exploring by touch where the
attach button is drawn therefore lands on the send button, and a long
press there opens the send options, since a long press on the container
is what a screen reader is given to reach them. Moving by swipe finds the
attach button correctly, which is why only exploring by touch is
affected.

Let the container take touch and hover only where a button of its own is
shown, so what is touched is what is drawn.
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch from 3d7427d to 715cff4 Compare September 27, 2026 10:45
@keyang556

Copy link
Copy Markdown

@Arseny271 , could you take a look when you have a moment?

@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch from 715cff4 to 982d581 Compare October 1, 2026 23:01
@mehranlatifi83 mehranlatifi83 changed the title Keep the attach button reachable by touch exploration Oct 1, 2026
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-attach-button-under-send-container branch from 982d581 to 91c32a8 Compare October 13, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants