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(nav): improve reliability of swipe back gesture when quickly swiping back #27904

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Aug 1, 2023

Issue number: resolves #27893


What is the current behavior?

This is another instance of #22895. The progressCallback function is fires asynchronously, so it's possible for the gesture start and end callbacks to run before the animation is ever set in progressCallback. When this happens, the animation gets locked up.

I previously fixed this in #23527 for ion-router-outlet, but I did not fix it for ion-nav.

What is the new behavior?

  • If the gesture has ended by the time progressCallback fires, reset the animation to the beginning so it does not get locked up.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 7.2.2-dev.11690896715.12338339

@stackblitz
Copy link

stackblitz bot commented Aug 1, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the package: core @ionic/core package label Aug 1, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review August 1, 2023 13:44
@liamdebeasi liamdebeasi requested review from a team, thetaPC and averyjohnston and removed request for sean-perkins and a team August 1, 2023 18:58
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

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

LGTM, also verified by OP.

@liamdebeasi liamdebeasi added this pull request to the merge queue Aug 2, 2023
Merged via the queue into main with commit 9500769 Aug 2, 2023
55 checks passed
@liamdebeasi liamdebeasi deleted the FW-4860 branch August 2, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: nav, swipe back transition gets stuck with swiping quickly
3 participants