Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230754

How to disable swipe back gesture, swipeBackEnabled doesn't work

$
0
0

I’m trying to disable the swipe-back feature. I put swipeBackEnabled: false to config, but it only works on IOS. When I run the app on an Android device, the swipe gestures are still there.

main.js

const app = createApp(App)
  .use(IonicVue, {
    swipeBackEnabled: false
  })
  .use(router)
  .use(createPinia())

router.isReady().then(() => {
  app.mount('#app')
})

I also try to disable swipeGesture in App.vue, but still did not work.

App.vue:

<template>
  <ion-app>
    <ion-router-outlet swipeGesture="false"/>
  </ion-app>
</template>

Please help, thank you.


Viewing all articles
Browse latest Browse all 230754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>