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
mlk_nima last edited by
I’m having an application with an
ons-tabbaras the main UI element. In each
ons-tabI have scrollable contents, like a series of
ons-cards. If I swipe exactly vertically in each
ons-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 lateral
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 in
ons-tabbar? I already know how to disable the swipe.
chang last edited by
maybe this would help