-
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: swipe to close on card modal conflicts with nav swipe to go back #25327
Comments
This seems to have always been an issue, but it is more visible now that you can swipe to close on the content. Both the modal and the swipe back gestures have the same priority which is probably why they are clashing. Modal: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/modal/gestures/swipe-to-close.ts#L280 Changing the STGB priority to 41 seems to fix the issue while also allowing the swipe to close gesture to work. |
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
When using
ion-nav
inside of a card modal, it is impossible to swipe to go back because the swipe to close gesture always takes priority.Expected Behavior
I would expect to be able to swipe to go back in a card modal even when using
ion-nav
.Steps to Reproduce
npm install
.ionic serve
.Note: This only happens in iOS mode.
Code Reproduction URL
https://github.com/liamdebeasi/vue-nav-sample
Ionic Info
Ionic:
Ionic CLI : 6.18.3-testing.0 (/Users/liamdebeasi/.nvm/versions/node/v16.11.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 6.1.6
Capacitor:
Capacitor CLI : 3.5.1
@capacitor/android : not installed
@capacitor/core : 3.5.1
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.6.0
System:
NodeJS : v16.11.1 (/Users/liamdebeasi/.nvm/versions/node/v16.11.1/bin/node)
npm : 8.0.0
OS : macOS Monterey
Additional Information
No response
The text was updated successfully, but these errors were encountered: