【问题标题】:Did anyone know how to disable swipe gesture in ionic 4 pwa app (ios device)有谁知道如何在 ionic 4 pwa 应用程序(ios 设备)中禁用滑动手势
【发布时间】:2019-12-02 13:05:04
【问题描述】:
这仅发生在 ios 的 pwa 应用程序中。在本机 ios 应用程序中,这工作正常。
这就是我在本机应用程序中禁用滑动手势的方式。 => ion-router-outlet main [swipeGesture]="false"
You can see image here
预期结果 in ios =>swipeGesture = false
实际结果 in ios => swipeGesture = true
【问题讨论】:
标签:
ios
ionic-framework
ionic4
progressive-web-apps
【解决方案1】:
1.
this.slides.lockSwipes(true); // this will disable the swipe in either ways
this.slides.lockSwipes(false); // this will enable the swipe in either ways
2.
<ion-slide class=“swiper-no-swiping”>