[unexpected event occurring] Swipe Event Occurs When I Scroll Vertically
(jQuery Mobile alpha3)
Swipe event occurs unexpectedly when I scroll vertically.
This is the code, which handle swipe event(line 660):
- if ( stop.time - start.time < 1000 &&
- Math.abs( start.coords[0] - stop.coords[0]) > 30 &&
- Math.abs( start.coords[1] - stop.coords[1]) < 75 ) {
* 1. distance between start.x and stop.x should be more than 30
* 2. distance between start.y and stop.y should be less than 75
This is the condition of swipe event occurring.
It looks like proper, but the condition 2 don't work properly, because [Math.abs( start.coords[1] - stop.coords[1])] get to be small value when vertical screen scrolling occurs.