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

increase the threshold to register a swipe on the toast container #144

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

kennethsoftware
Copy link
Contributor

@kennethsoftware kennethsoftware commented Feb 9, 2021

In relation to the fix for issue #113

I noticed when carrying out some testing on our app that presses weren't passing through correctly on Samsung devices. I managed to find the issue was to do with the threshold for registering pan / swipe events.

Super minor fix, increasing the threshold slightly and adding in a onMoveShouldSetPanResponderCapture equivalent methods meant it worked consistently across all the devices we tested on.

@kennethsoftware
Copy link
Contributor Author

Great library by the way, thanks for making it!

Copy link
Owner

@calintamas calintamas left a comment

Choose a reason for hiding this comment

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

@aaronkendall thanks for taking the time to look into it and provide a fix

src/index.js Outdated Show resolved Hide resolved
@calintamas calintamas merged commit 8e06759 into calintamas:master Feb 10, 2021
@kennethsoftware kennethsoftware deleted the bugfix/swipe-threshold branch February 10, 2021 12:26
remcorakers pushed a commit to remcorakers/react-native-toast-message that referenced this pull request Mar 15, 2023
…lintamas#144)

* increase the threshold to register a swipe on the toast container

* extract logic as to whether pan responder should respond to a gesture
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.

2 participants