I use the SwipeTouch plugin to hide and show the #child element by scrolling.
I have a #parent element that contains a #child element.
This #child will not always have enough content to create a scrollbar, but a problem will occur when there is one. #parent limits the #child element by forcing the scroll bar if the #child element #child higher than #parent
<div id="parent"> <div id="child"> </div> </div>
I want to allow scrolling in any direction to show and hide #child ...
- Scrolling in the show
#child will be indicated as swipeIN . - Highlighting the hide
#child will be called swipeOUT .
... the problem is , if and when the scroll bars exist, and #child is visible, I cannot scroll vertically, because this will be logged as an attempt to capsize and run swipeOUT .
So I had a plan:
- No scrollbar: swipe in all directions to call
swipeIN and swipeOUT . - Scroll bars: swipe in all directions to call
swipeIN . Swipe up or down to scroll, swipe left or right to call swipeOUT .

It was a good plan, except that it does not work. I assume that if I could turn off the top of the swipe and temporarily scroll down, it would work ...
Link to my attempt (the problem only appears on the touch device).
The link that is best suited for testing on a touch device
Any ideas on how I can make this work?
source share