Skip to content

bug: swipe to close on card modal conflicts with nav swipe to go back #25327

Closed
@liamdebeasi

Description

@liamdebeasi

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

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

  1. Clone repo.
  2. Run npm install.
  3. Run ionic serve.
  4. Click the cog icon.
  5. Click "Name".
  6. Attempt to swipe to go back. Observe that you cannot swipe to go back.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions