Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使刷卡器的左右限制减少?如果我在第一张幻灯片上并且向右滑动,则会有一个阈值,我会看到包装器。我怎样才能最小化这个以缩短距离..例如在响应式设计示例中: http ://www.idangero.us/sliders/swiper/demos.php
使用阻力:'100%' 将第一张幻灯片之前的左限制和最后一张幻灯片的右限制固定为 0
在撰写此回复时(2015 年 8 月 11 日),我认为解决方案是使用resistanceRatio属性而不是resistance:'100%'. 随着resistanceRatio: 0反弹行为被关闭。默认值为0.85。
resistanceRatio
resistance:'100%'
resistanceRatio: 0
0.85
如果resistance属性不为 false (默认值为resistanceis true),这将起作用。
resistance
true