如何只禁用swiper组件的左右滑动功能,而不禁用上下滑动?
发布于 4 年前 作者 liuping 15170 次浏览 来自 官方Issues

页面功能:页面用到了swiper滑块,且存在多个swiper。

描述:通过按钮点击切换swiper,不使用左右滑动切换。

问题:

在使用catchtouchmove将滑动功能禁止后,发现页面内容超过一屏后,页面无法进行上下滑动查看超出内容。

有没有什么方法可以只禁用swiper的左右滑动,而不禁止它的上下滑动。求教。

2 回复

swiper里用scroll-view

那干嘛用swiper ,自己用定位放多个满高度 scroll-view吧

回到顶部