Skip to content

fix: Add button debounce to solve click-through issue on Chrome mobile#1092

Open
Pecacheu wants to merge 3 commits intostoatchat:mainfrom
Pecacheu:fix/touchbtn
Open

fix: Add button debounce to solve click-through issue on Chrome mobile#1092
Pecacheu wants to merge 3 commits intostoatchat:mainfrom
Pecacheu:fix/touchbtn

Conversation

@Pecacheu
Copy link
Copy Markdown
Contributor

@Pecacheu Pecacheu commented Apr 4, 2026

Fixes #798

At long last, I found a simple fix that works on Chrome mobile without breaking it on Firefox mobile!

This also fixes another button bug on mobile where when the virtual keyboard is open, pressing a button does not fire as it closes. This is likely a Solid Aria bug, but adding onTouchEnd fixes it for now, and the debounce prevents multiple event firings.

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
@Pecacheu Pecacheu requested review from a team as code owners April 4, 2026 03:43
Comment thread packages/client/components/ui/components/design/Button.tsx
Comment thread packages/client/components/ui/components/design/Button.tsx
- Fix import order

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In Chrome, touch events on some buttons propagate through after dialogs close

3 participants