Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Make ons-tabbar swipe on one axis only
-
Hi Community!
I’m having an application with an
ons-tabbar
as the main UI element. In eachons-tab
I have scrollable contents, like a series ofons-card
s. If I swipe exactly vertically in eachons-tab
, my content scrolls vertically as well, and everything behaves as expected. But even a slight movement on the x-axis while swiping will trigger the swipe-left or swipe-right action and will show the edge of the lateralons-tab
.
Ideally, I would like to swipe between tabs only when the swipe gesture is exactly horizontal. Take the Instagram app as an example. You can’t change from, say, “Home” to “Explore” unless you start the swipe gesture strictly horizontally.
How is this achieved inons-tabbar
? I already know how to disable the swipe.Thanks!
-
https://community.onsen.io/topic/3030/how-to-reduce-tab-swipe-sensitive-when-scrolling/2
maybe this would help