Help! How to enable native scrolling after detecting touch direction?
I am trying to develop a custom swipe function, after reviewing the swipe method of jquery mobile version 1.4.4 which doesn't work in Android 4.2 onwards, using touchStart, touchMove, touchCancel, touchEnd events. The objective is to drag a div in left direction so a menu comes up after a certain distance is covered.
I am able to determine the direction and distance covered. Once touchStart event is fired and till touchEnd i have to disable the vertical scrolling. The problem is when the page loads and when i try to do a vertical scrolling then also the scroll doesn't work. How will I disable vertical scroll only after detecting that i am trying to do a horizontal scroll first.
Any help in this regard will be greatly appreciated. Thanks