Line 46: | Line 46: | ||
var clientY_start,clientY,deltaY,mTop,clientY_end,moveY,mTop_changed,swipe,swipe_t1,swipe_t2,edgeStatus,swipeStatus,transition; | var clientY_start,clientY,deltaY,mTop,clientY_end,moveY,mTop_changed,swipe,swipe_t1,swipe_t2,edgeStatus,swipeStatus,transition; | ||
function touch (event){ | function touch (event){ | ||
+ | paa.innerHTML = doscroll; | ||
if(doscroll){ | if(doscroll){ | ||
var touchEvent = event || window.event; | var touchEvent = event || window.event; | ||
Line 104: | Line 105: | ||
tag--; | tag--; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout(function(){doscroll = true;},transitionTime); | + | setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); |
− | paa.innerHTML = "tag=" + tag | + | paa.innerHTML = "tag=" + tag; |
} | } | ||
}else{ | }else{ | ||
Line 112: | Line 113: | ||
tag++; | tag++; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout(function(){doscroll = true;},transitionTime); | + | setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); |
− | paa.innerHTML = "tag=" + tag | + | paa.innerHTML = "tag=" + tag; |
} | } | ||
} | } | ||
Line 120: | Line 121: | ||
if(Math.abs(mTop_changed)<document_Height/2){ | if(Math.abs(mTop_changed)<document_Height/2){ | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout(function(){doscroll = true;},transitionTime); | + | setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); |
}else{ | }else{ | ||
if(moveY>0){ | if(moveY>0){ | ||
Line 126: | Line 127: | ||
tag--; | tag--; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout(function(){doscroll = true;},transitionTime); | + | setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); |
− | paa.innerHTML = "tag=" + tag | + | paa.innerHTML = "tag=" + tag; |
} | } | ||
}else{ | }else{ | ||
Line 133: | Line 134: | ||
tag++; | tag++; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout(function(){doscroll = true;},transitionTime); | + | setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); |
− | paa.innerHTML = "tag=" + tag | + | paa.innerHTML = "tag=" + tag; |
} | } | ||
} | } |
Revision as of 13:51, 17 July 2018