-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Back navigation gesture is not cancellable (iOS) #6782
Comments
Can you mention your version of |
@satya164 Correction, I have the versions:
|
Can you verify if it’s still broken in newest versions? |
@osdnk I will test it soon and let you know! Probably Monday. |
@osdnk yes, verified with the following versions:
Also, the best way to replicate this is by performing the back gesture quickly. Quickly swipe from left to right until the gesture is almost complete, then swipe back left to cancel the back navigation. |
@osdnk @satya164 I wanted to further clarify my last comment and how to reproduce.
I hope this helps! |
The problem here is that when we scroll back really fast, even though velocity is negative, `Math.abs(translation + velocity * gestureVelocityImpact)` will end up bigger than `distance / 2`. I removed the `Math.abs`, I think it's not necessary. When `translation + velocity * gestureVelocityImpact` is negative, it's also < `distance / 2` and we should just close the screen. Closes #6782
The problem here is that when we scroll back really fast, even though velocity is negative, `Math.abs(translation + velocity * gestureVelocityImpact)` will end up bigger than `distance / 2`. I removed the `Math.abs`, I think it's not necessary. When `translation + velocity * gestureVelocityImpact` is negative, it's also < `distance / 2` and we should just close the screen. Closes react-navigation#6782
Current Behavior
Expected Behavior
How to reproduce
Your Environment
Example
When I cancel the back navigation action, I slide the screen all the way to the edge and let go—the last animation seen in the gif is the one that is fired after I let go of the screen (the one that should not fire)
The text was updated successfully, but these errors were encountered: