Problem: How can I disable swipe navigation between tabs

I’m using the swiper card and having issue where it will swipe the tab too I have multiple tabs for a dashboard. How can I disable tab navigation swipe or only allow it for specific dashboards?

Thank you. I would really appreciate any help because google has not been my friend on how to resolve this.

1 Like

Welcome to community!

Maybe you have this module installed https://github.com/maykar/lovelace-swipe-navigation ?

If yes, then open Dashboard to which you want swipe disabled.

Then press 3 dots in upper right corner → Edit Dashboard → 3 Dots again → Raw configuration editor

Insert this at the top and save:

swipe_nav:
  swipe_amount: 200

This should “disable” swiping through views in that Dashboard, because you would need to swipe 200% percent of the screen in order for swipe to actually work.

1 Like

From v1.11.0 you can disable the swipe navigation on certain dashboards by using the new configuration option enable: false. Release link.

Example:

swipe_nav:
  enable: false

Thank you @Zanna_37 !

Is there any change the swipe_nav could be disabled just for one view within one dashboard?

I tried various configurations without success.