Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ const Swipeable = (props: SwipeableProps) => {
const leftActionAnimation = useAnimatedStyle(() => {
return {
opacity: showLeftProgress.value === 0 ? 0 : 1,
// Without this, Android keeps the absolute-fill left actions container
// as a touch target even at opacity 0, swallowing taps that should reach
// the row content or the opposite-side actions below in z-order.
pointerEvents: showLeftProgress.value === 0 ? 'none' : 'auto',
};
});
Comment on lines 393 to 401

Expand Down Expand Up @@ -423,6 +427,9 @@ const Swipeable = (props: SwipeableProps) => {
const rightActionAnimation = useAnimatedStyle(() => {
return {
opacity: showRightProgress.value === 0 ? 0 : 1,
// See note on leftActionAnimation: needed so the hidden right actions
// container doesn't intercept taps on the visible left actions on Android.
pointerEvents: showRightProgress.value === 0 ? 'none' : 'auto',
};
});
Comment on lines 427 to 434

Expand Down