-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Testing enhanced gesture approach #21369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@brianacnguyen
touch.mov |
isAccessibilityEnabled !== false && !isDisabled ? onPress : undefined | ||
} // Use TouchableOpacity onPress when accessibility is ON or UNKNOWN (safer for accessibility users) | ||
isAccessibilityEnabled === true && !isDisabled ? onPress : undefined | ||
} // Use TouchableOpacity onPress only when accessibility is explicitly ON (safer for accessibility users) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Accessibility State Causes Component Unresponsiveness
Initializing isAccessibilityEnabled
to false
and changing the TouchableOpacity
onPress
condition to isAccessibilityEnabled === true
removes a safe fallback. This causes components to rely solely on the gesture handler when accessibility state is false
or unknown, leading to unresponsive buttons and list items, especially during initial loading or for accessibility users.
Additional Locations (2)
|
Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Refines gesture handling across buttons/list items and tunes BottomSheet pan thresholds to improve responsiveness and interaction with other gestures.
disallowInterruption(true)
and useGesture.Simultaneous(native, tap)
.maxDuration
to200
and removerequireExternalGestureToFail
.isScreenReaderEnabled
state tofalse
, add error fallback, and only useTouchableOpacity
onPress
when accessibility is explicitlytrue
.PanGestureHandler
withshouldCancelWhenOutside=false
,activeOffsetY={[-10, 10]}
, andactiveOffsetX={[-50, 50]}
to reduce unintended cancellations and improve gesture activation.Written by Cursor Bugbot for commit 183c4cf. This will update automatically on new commits. Configure here.