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

fix: fixed panGestureAnimatedValue change on content scroll down #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bintoll
Copy link

@bintoll bintoll commented Jan 14, 2023

The issue was described here #471.
I found out that the modal could be closed by swiping the child scroll (ScrollView, FlatList ...) down only if that child list is on the top and was on the top at the moment when the drag gesture was started. So I added the check in handleGestureEvent that checks if the list was already in the top so the calculation for panGestureAnimatedValue starts. This should be valid as long as panGestureAnimatedValue value does what was described in docs "Animated.Value of the modal opening position between 0 and 1."

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.

None yet

1 participant