fix: improve mobile touch event handling for Roo Cloud interaction #8722
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the issue where users cannot select answers or send messages when using Roo Cloud on mobile devices (both the app and browsers like Safari/Chrome).
Problem
Users reported being unable to:
This was affecting all Roo Cloud mobile users.
Solution
Added proper touch event handling to all interactive UI components:
Changes Made:
Button Component (
webview-ui/src/components/ui/button.tsx)touch-manipulationCSS class for better mobile responsivenessFollowUpSuggest Component (
webview-ui/src/components/chat/FollowUpSuggest.tsx)onTouchEndhandlers to prevent ghost clicks on mobilerole="button",tabIndex={0})ChatTextArea Component (
webview-ui/src/components/chat/ChatTextArea.tsx)Testing
Related Issue
Fixes #8720
Checklist
Important
Improves mobile touch event handling in Roo Cloud by adding touch event handlers and updating CSS for better responsiveness.
ChatTextArea.tsx,FollowUpSuggest.tsx, andbutton.tsx.onTouchEndhandlers to prevent ghost clicks and ensure proper interaction.touch-manipulationCSS class for better mobile responsiveness.ChatTextArea.tsx: Adds touch event handlers to buttons (send, image, enhance, cancel, stop TTS) and prevents default touch behavior.FollowUpSuggest.tsx: AddsonTouchEndhandlers to buttons and ensures accessibility attributes are set.button.tsx: Updates button styles to includetouch-manipulationclass.This description was created by
for 6b4d64a. You can customize this summary. It will automatically update as commits are pushed.