-
Notifications
You must be signed in to change notification settings - Fork 13.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
bug: ionic vue, swipe back transition gets stuck when swiping quickly #22895
Comments
Can you try the following dev build and let me know if it resolves the issue?
|
Now it seems like instead of being stuck in between, it gets stuck on the subpage, not allowing me to navigate back trough swipe or back button. |
Thanks, this dev build should fix the issue.
|
It still gets stuck sometimes. It has to be really slight and fast swipe, so the animation doesn't start rendering, but the styles of the components change. |
Can you clarify what this means? I cannot reproduce the issue with the latest dev build. |
https://imgur.com/oC5WKYf |
this also happens for us on angular |
This was an annoying bug for me as well in 5.4.x and now it is definitely fixed in 5.6.4. Thank you! |
So let me correct myself. It's still happening, just less often. Look below video I made. It's hard to reproduce, I needed to try like 10 times. For sure you need to swipe back really fast. If the issue comes up, my application breaks. I'm on @ionic/vue 5.6.6. RPReplay_Final1620221580.MP4 |
I am also experiencing exactly the same thing, currently running ionic/vue 5.6.7. As the original bug report says I only get this when swiping backwards fast, swiping slowly causes no issues. Would be great to get an update on this. |
little update on my side: we rolled out PR #23128 about 2 months ago to more than 100 users and did not receive any swipe-back bugs since then |
Hi everyone, We appreciate your patience as we work to resolve this issue. I think I found a solution similar to what we do in
With this dev build, I am no longer able to the behaviors found in #22895 (comment) and #22895 (comment). |
your fix is not specific to vue, right? if you can also provide a angular dev build I can check that. |
Here is an Ionic Angular dev build:
|
Now, instead of a midway stuck animation, I can't go back to the previous page when the bug happens. |
Can you provide some additional information on how to reproduce this? I was not able to reproduce that behavior on my end. |
I just barely (fast and small distance) swipe back, that the visible animation won't trigger, but some values will get changed. Mouse has to be released right when the animation would start. |
I am also experiencing this new bug on the new build, using Vue. When I perform a similar quick swipe back that would cause the old stop half way bug, now it doesn't seem to start the transition at all, I remain on the same page and am unable to use the app, pressing the back button or swiping after that point yields no response, I am using a tab view and I am able to select a different tab but the page doesn't change. |
Upload.from.GitHub.for.iOS.MOVHere is a screen recording for reference, the first few times the swipe back works but on the last time it does a little jitter and bricks, you can see I'm pressing the back button and switching tabs with no response. |
@liamdebeasi maybe my PR is not the best way of preventing the issue, but the cause is accurate IMO. I spent several hours debugging the gesture.
I dont see how your latest PR handles this race condition. |
My PR prevents a new gesture from starting while the transition is finishing via the I will work on revising my PR to see if I can address the second issue too. |
So the second issue here is that the animation for swipe to go back is set asynchronously: https://github.com/ionic-team/ionic-framework/blob/master/core/src/utils/transition/index.ts#L149 While not common, it is possible for the gesture to start and end before the animation has even been set. When I am going to work on a fix and will post another dev build here when I have it. |
I think I finally have a solution that works well 😄 . I've tested it and I cannot reproduce the issues noted in this thread, but it would be great to have some additional testers. Here is a dev build if anyone would like to give it a shot:
|
Just did a quick test and also can't reproduce it. |
@liamdebeasi looks good for me as well. Can no longer reproduce either of the issues mentioned. Thanks for the update 👍 |
Thanks for the issue. This has been resolved via #23527, and a fix will be available in an upcoming release of Ionic Framework. In the meantime, please feel free to continue testing, and let me know if you run into any issues testing the fix. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
Sometimes, when swiping back fast, the view gets stuck in left half and prevents navigating to the page I was navigating back from.
Expected behavior:
I should be able to swipe with any speed and not cause the application to be stuck on left side of the screen.
Steps to reproduce:
Related code:
https://github.com/jakubkoje/ionic-back-issue
Other information:
No errors in console when it happens or when I try to navigate away while the screen is halfway.
Example video:
https://imgur.com/g0Sy7Zm
Ionic info:
The text was updated successfully, but these errors were encountered: