Skip to content

feat: add swipe-gesture property to disable swiping on segment-view #30290

Description

@jongbonga

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions