我们已经使用配置变量,但是我们不知道我们要理解每个配置变量的作用。我们已经做了一个图形来帮助我们了解它们如何共同合作。我们正确理解这一点吗?
解决方法
> http://blog.jquerymobile.com/2011/08/03/jquery-mobile-beta-2-released/
Configurable swipe event thresholds added
There were a number of hard-coded constants in the
jquery.mobile.event.js swipe code. For developers who need to tweak
those constants to allow a greater vertical displacement and still
register a swipe,this new feature allows them to be adjusted. Thanks
to mlitwin for contributing this.
- scrollSupressionThreshold (default: 10px) – More than this horizontal displacement,and we will suppress scrolling
- durationThreshold (default: 1000ms) – More time than this,and it isn’t a swipe
- horizontaldistanceThreshold (default: 30px) – Swipe horizontal displacement must be more than this.
- verticaldistanceThreshold (default: 75px) – Swipe vertical displacement must be less than this.
相关问题:
> Does jQuery preserve touch events properties?
> How to recognize touch events using jQuery in Safari for iPad? Is it possible?
> How to get position/coordinates of a tap-event with jquery-mobile?
> Calculate swipe distance in jQuery-mobile