How to make Ion menu with swipeEnabled false, but enable swipe on slides in menu

I have a requirement that slides be available with an ionic menu. Therefore, I added slides to the contents of the menu. Then I ran into a problem with a napkin.

The menu closes when scrolling. To fix this, I added swipeEnable = "false" in the ion menu. Then I can transfer the slides to the menu. This solution works fine in iOS, but does not work in android, in which the entire swipe is disabled, and even slides are not executed.

How to fix this problem in Android?

Below is my code in which the menu display is disabled, so the menu will not be closed with a click, however I am trying to scroll through the contents in the menu with slides.

<ion-menu type="overlay" swipeEnabled="false">
  <ion-content>
    <ion-slides>
      <io-slide>
        <h1>Page1</h1>
      </ion-slide>
      <ion-slide>
        <h1>Page2</h1>
      </ion-slide>
      <ion-slide>
        <h1>Page3</h1>
      </ion-slide>
    </ion-slides>
  </ion-content>
</ion-menu>
+4
1

, , Chrome Version 56.0.2924.87 (64-bit) Nexus 6P Galaxy S5

0

Source: https://habr.com/ru/post/1671327/


All Articles