Skip to content
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

feat: disable slide gesture around confirm slider button #3240

Merged

Conversation

Prakhar-Agarwal-byte
Copy link
Contributor

Fixes #3081

Added a PanGestureHandler which captures slide gestures in areas surrounding the confirm slider button. This prevents the native navigation handler from catching this event, and back action is not triggered.

Demo:

XRecorder_01052024_155636.mp4

@Prakhar-Agarwal-byte Prakhar-Agarwal-byte force-pushed the disable-back-swipe branch 2 times, most recently from c0fe9d7 to 82e3652 Compare May 1, 2024 11:01
@nicolasburtey
Copy link
Member

great PR thanks!

@@ -560,4 +567,7 @@ const useStyles = makeStyles(({ colors }) => ({
justifyContent: "space-between",
alignItems: "center",
},
sliderContainer: {
padding: 20,
Copy link
Member

Choose a reason for hiding this comment

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

should we make it even a bit bigger?

Suggested change
padding: 20,
padding: 32,

Copy link
Member

Choose a reason for hiding this comment

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

merging for now. we can change in a future PR later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this may help.

@nicolasburtey nicolasburtey merged commit a289337 into GaloyMoney:main May 1, 2024
7 of 9 checks passed
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.

Scroll to right for confirming payment
2 participants