如何设置刷卡左,右击刷卡限制? [英] How to set swiper left and righ swipe limit?
问题描述
我怎样才能使左,右极限,从刷卡要少?
如果我在第一张幻灯片,如果我刷到右边还有一个门限,我看到包装。我怎样才能减少这种,这样的距离是在响应式设计的例子更短。例如:
http://www.idangero.us/sliders/swiper/demos.php
How can I make the left and right limit from swiper to be less?? If I am on the first slide and if I swipe to right there is a threshhold and I see the wrapper. How can I minimise this so that the distance is shorter.. for example at the responsive design example: http://www.idangero.us/sliders/swiper/demos.php
推荐答案
在写这篇响应(2015年8月11日),我认为解决方案是使用的时间 resistanceRatio
属性,而不是阻力:'100%'
。
随着 resistanceRatio:0
反弹的行为是关闭的。默认值为 0.85
。
At the time of writing this response (august 11, 2015) I think the solution is to use resistanceRatio
property instead of resistance:'100%'
.
With resistanceRatio: 0
bounce behavior is turned off. The default value is 0.85
.
如果电阻
属性不为电阻
为假(默认值这将工作真正
)。
This will work if resistance
property is not false (default value for resistance
is true
).
这篇关于如何设置刷卡左,右击刷卡限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!