Skip to content

bug: ion-segment swipe-gesture doesn't stop gesture #30290

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

Open
3 tasks done
jongbonga opened this issue Mar 21, 2025 · 2 comments
Open
3 tasks done

bug: ion-segment swipe-gesture doesn't stop gesture #30290

jongbonga opened this issue Mar 21, 2025 · 2 comments
Labels

Comments

@jongbonga
Copy link

jongbonga commented Mar 21, 2025

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

swipe-gesture="false" doesn't stop swipe between segments

Expected Behavior

user shouldn't be able to swipe between segments if swipe-gesture="false"

Steps to Reproduce

set swipe-gesture="false" on ion-segment
swipe between segment-content inside segment-view

Code Reproduction URL

https://stackblitz.com/edit/msaxc4p1?file=src%2Fapp%2Fexample.component.ts

Ionic Info

Ionic:

   Ionic CLI                     : 7.2.0 
   Ionic Framework               : @ionic/angular 8.5.1
   @angular-devkit/build-angular : 18.2.12
   @angular-devkit/schematics    : 18.2.12
   @angular/cli                  : 18.2.12
   @ionic/angular-toolkit        : 11.0.1

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Mar 21, 2025
@Leomhl
Copy link

Leomhl commented Apr 15, 2025

I am also finding issues with swipes, and the

IonicModule.forRoot({ swipeBackEnabled: false, }),

isn't working for me.

Nothing "turns off" the swipe gestures.
The issue:

Considering a stack with "n" pages hierarchically opened (like 10), pressing the back button or using the ionic back button, it is working fine. But when the user starts to swipe left/right automatically, the routes stack looks strange and at some point loses the reference.

Nothing is working for me to disable the swipe back.

@sargison
Copy link

sargison commented Apr 23, 2025

Did you manage to fix this? I have run into this issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants