【问题标题】: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”>
    

    【讨论】:

      猜你喜欢
      • 2019-05-11
      • 1970-01-01
      • 2016-01-25
      • 2017-02-06
      • 1970-01-01
      • 2020-04-17
      • 1970-01-01
      • 2014-04-01
      • 1970-01-01
      相关资源
      最近更新 更多