Line 32: | Line 32: | ||
} | } | ||
doscroll = false; | doscroll = false; | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
} | } | ||
} | } | ||
Line 97: | Line 97: | ||
tag--; | tag--; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
paa.innerHTML = "tag=" + tag; | paa.innerHTML = "tag=" + tag; | ||
} | } | ||
Line 104: | Line 104: | ||
tag++; | tag++; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
paa.innerHTML = "tag=" + tag; | paa.innerHTML = "tag=" + tag; | ||
}else if(tag===tagRange){ | }else if(tag===tagRange){ | ||
//setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); | //setTimeout(function(){doscroll = true;paa.innerHTML = "removed"+doscroll;},transitionTime); | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
} | } | ||
} | } | ||
Line 115: | Line 115: | ||
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( | + | setTimeout(tagUpdate(),transitionTime); |
}else{ | }else{ | ||
if(moveY>0){ | if(moveY>0){ | ||
Line 121: | Line 121: | ||
tag--; | tag--; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
paa.innerHTML = "tag=" + tag; | paa.innerHTML = "tag=" + tag; | ||
} | } | ||
Line 128: | Line 128: | ||
tag++; | tag++; | ||
$(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | $(".s1 > div").css("transform","translateY(" + -(document_Height)*(tag-1) + "px)"); | ||
− | setTimeout( | + | setTimeout(tagUpdate(),transitionTime); |
paa.innerHTML = "tag=" + tag; | paa.innerHTML = "tag=" + tag; | ||
} | } | ||
Line 142: | Line 142: | ||
} | } | ||
} | } | ||
− | function | + | function tagUpdate(){ |
var doscroll=true; | var doscroll=true; | ||
var classStatus=0; | var classStatus=0; |
Revision as of 06:22, 18 July 2018