Skip to content

Conversation

@kmichalikk
Copy link
Collaborator

Fixes #3302

Supersedes #3304

Description

This PR fixes the failure requirements for content pop gesture. The changes introduced in #3265 fixed the immediate dismissing of screen when scrolling on horizontal ScrollView, but at the same time introduced a regression for vertical scrolling. Here, we apply the failure requirement only if the ScrollView has horizontal scrolling.

Changes

Updated RNSScreenStack's gestureRecognizer:shouldRequireFailureOf:otherGestureRecognizer to check if ScrollView has horizontal scrolling.

After changes

vertical-horizontal-scroll.mov

Testing

Use Test1072. Make sure to check custom animations with animation and animationMatchesGesture.

@kmichalikk kmichalikk self-assigned this Nov 26, 2025
@kmichalikk kmichalikk changed the title Distinguish horizontal and vertical scroll in gesture failure requirements fix(iOS): Distinguish horizontal and vertical scroll in gesture failure requirements Nov 26, 2025
Copy link
Contributor

@t0maboro t0maboro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behaviour seems good.

One remark regarding naming & some needed research.

Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kmichalikk kmichalikk merged commit 178e8c9 into main Nov 27, 2025
6 checks passed
@kmichalikk kmichalikk deleted the @kmichalikk/fullscreen-gesture-scrollview-conflict branch November 27, 2025 10:08
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.

[v4.17.x] fullScreenGestureEnabled conflict with ScrollView

5 participants