structure:
<div class="wrap">
<div class="inner"> //touch
//
</div>
</div>
the height and width of wrap is fixed, and the width of inner is 100%
.//touchStart
var startY=event.pageY //
//touchMove
var endY = event.pageY //
var num = startY-endY //
then set the transform:translateY (num) value of inner to slide up and down inner, but now I encounter a problem is how to determine the bottom / top of the slip stops sliding. I have tried that the offset of offsetTop relative to the parent element has no effect, it has always been 0 (but transform will not change this value? )
I hope all of you will give us some ideas and help with the confusion as you pass by. Thank you