Skip to content

fix(nav): defer non-animated swipe back until the gesture completes - #31552

Open
ShaneK wants to merge 1 commit into
mainfrom
FW-7757
Open

ShaneK wants to merge 1 commit into
mainfrom
FW-7757

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Issue number: resolves #29793


What is the current behavior?

Currently, swipe to go back on ion-nav and ion-router-outlet starts the back transition as soon as the gesture starts. With animations disabled, through either the animated prop or the global config, there's no progress animation for the swipe to drive, so the transition completes instantly. The previous page gets its enter lifecycle events even when the swipe is abandoned, and a completed swipe never navigates.

What is the new behavior?

With animations disabled, the swipe now waits until it's released to decide whether to go back. A completed swipe goes back without an animation and an abandoned one does nothing. For ion-router-outlet, core calls the swipe handler's onStart and onEnd(true) on release, so Angular, React and Vue didn't need changes. The host also ignores pointer events during the swipe, the same way a swipe-driven transition does, so releasing doesn't click whatever is under the pointer.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Relevant test screen (Angular)

Current dev build

9.0.7-dev.11791478996.1b854592

@ShaneK
ShaneK requested a review from a team as a code owner October 8, 2026 17:04
@ShaneK
ShaneK requested a review from thetaPC October 8, 2026 17:04
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Oct 8, 2026 5:06pm UTC

Request Review

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package package: react @ionic/react package labels Oct 8, 2026

This branch was successfully deployed

1 active deployment
Preview — b8545926 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: react @ionic/react package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ionViewWillEnter triggered incorrectly

1 participant