-
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: ios safari swipe back transition Execution is messed up #25819
Comments
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. When you navigate back in an Ionic app, we will play the page leaving transition. What is happening here is you are triggering the native iOS swipe to go back transition. Since you are also going back, the Ionic page transition will play as well. Unfortunately, we are not aware of a reliable way to suppress this built-in swipe back gesture. There is a related issue here: #22299. I proposed a new feature to the Web Manifest working group that should resolve this issue at least when running apps as a PWA: w3c/manifest#1041. While I understand this may not be the desired result, Ionic is working as intended here. Other developers have discussed workarounds in #22299 that you may find valuable for your use case. Thanks for the report! |
@liamdebeasi Thanks Reply ↓↓↓ Does this seem like a configuration? ↓↓↓ 🤔
|
You could certainly disable animations in Ionic. That may be the best path forward so that the swipe to go back gesture on iOS does not interfere with Ionic. You could also use platform detection to only disable animations when running in a browser/PWA so that you can still get animations if you are using Capacitor too. |
Please how can I drop the |
The Ionic Vue Configuration Documentation shows how to disable animations globally. The Router Outlet animated property goes over how to disable only page transitions. |
After I disable it, the problem also exists, am I doing something wrong in that step?
Screen.Recording.2022-08-26.at.22.08.44.mov<ion-app class="font-sans">
<ion-router-outlet :animated="false" />
</ion-app> app.use(IonicVue, {
mode: "ios",
animated: false,
swipeGesture: false,
swipeBackEnabled: false,
}) |
I don't have access to the code, so it is hard to say what the issue is. There may be a delay of a few frames when swapping out active/inactive pages. |
I tried it again and found that if I replace |
Unfortunately, we do not provide technical support on this issue tracker. I recommend posting on the Ionic Forum. There are a lot of friendly developers there who may be able to help out. If after doing some debugging you think you have found a bug in Ionic, feel free to open another issue and we can take a look. |
@liamdebeasi I created a sample project with about this bug can you help me take a look, thanks for your reply Screen.Recording.2022-08-27.at.00.47.55.mov |
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. |
Prerequisites
Ionic Framework Version
Current Behavior
The
@ionic/vue
I used, iOS Safari returns to the previous page, and the animation will be executed againExpected Behavior
Return to the previous page. The animation will only be triggered once 😂
Steps to Reproduce
Screen.Recording.2022-08-25.at.13.35.49.mov
Code Reproduction URL
No response
Ionic Info
Our project is running on the web, no cross platform code is used
Additional Information
I don't know what happened, but I know that this seems to be Safari's default behavior (sliding left and right) 🧐
The text was updated successfully, but these errors were encountered: