2013年2月25日 星期一

Scroll up/down may fire unwanted swipeleft/right event.

Solution:
configure swipe event thresholds properly.


Ref: http://jquerymobile.com/blog/2011/08/03/jquery-mobile-beta-2-released/


·         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.

沒有留言:

張貼留言