admin管理员组文章数量:1291122
I am using the iDangerous Swiper. By default if you touch and drag the first slide to the right, it allows you to kind of force it to the right, similar to how an iphone browser works, where it is kind of elastic and it only lets you drag a little. Is there a a paremeter to prevent this? I would also want the last slide to not be able to slide more to the left, since it will reveal what is underneath.
I am using the iDangerous Swiper. By default if you touch and drag the first slide to the right, it allows you to kind of force it to the right, similar to how an iphone browser works, where it is kind of elastic and it only lets you drag a little. Is there a a paremeter to prevent this? I would also want the last slide to not be able to slide more to the left, since it will reveal what is underneath.
Share Improve this question asked Nov 4, 2016 at 20:50 William HowleyWilliam Howley 4936 silver badges20 bronze badges1 Answer
Reset to default 12found it... need to initialize with resistanceRatio: 0
var swiper = new Swiper(this.swiperContainer, {
resistanceRatio: 0
});
本文标签: javascriptswiper apihow to stop a slide from overscrollingStack Overflow
版权声明:本文标题:javascript - swiper api - how to stop a slide from overscrolling - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741519461a2383093.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论