Skip to content
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] IonMenu is swipable through backdrop #55

Closed
BerkeAras opened this issue Aug 23, 2020 · 4 comments
Closed

[BUG] IonMenu is swipable through backdrop #55

BerkeAras opened this issue Aug 23, 2020 · 4 comments

Comments

@BerkeAras
Copy link
Contributor

Describe the bug
IonMenu is swipable through the Cupertino-Pane Backdrop

To Reproduce
Just create Ionic App with Menu and open Drawer.

Expected behavior
It should not be swipable.

@roman-rr
Copy link
Collaborator

@BerkeAras Thank you. I tried, but can't reproduce with both opened menu and drawer.
Please share some code.

@BerkeAras
Copy link
Contributor Author

@roman-rr
Copy link
Collaborator

roman-rr commented Aug 24, 2020

@BerkeAras

Please try this solution (Disable/Enable gesture) on your scope

<ion-menu [swipeGesture]="swipeGesture">

And controller

public swipeGesture:boolean = true;
constructor() {}

ngOnInit() {
    this.drawer = new CupertinoPane('.ion-drawer', {
      ...
      onWillPresent: () => this.swipeGesture = false,
      onDidDismiss: () => this.swipeGesture = true
    });
    this.drawer.present({animate: true});
}

roman-rr added a commit that referenced this issue Aug 26, 2020
@roman-rr
Copy link
Collaborator

roman-rr commented Aug 26, 2020

@BerkeAras Already able touchMoveStopPropagation property with the latest commit,
and will be able in next release within 1 week.

Simply set

let settings = {
  ...
  touchMoveStopPropagation: true
}

To fix this issue.

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

No branches or pull requests

2 participants