Difference between revisions of "Team:Jilin China/Home Js"

Line 92: Line 92:
 
  mTop_changed=parseFloat($(".s1 > div").css("transform").replace(/[^0-9\-,]/g,'').split(',')[5]) - mTop;
 
  mTop_changed=parseFloat($(".s1 > div").css("transform").replace(/[^0-9\-,]/g,'').split(',')[5]) - mTop;
 
  //alert(mTop_changed);
 
  //alert(mTop_changed);
  if(Math.abs(moveY)/(swipe_t2-swipe_t1)>=1.3){//多次测试得出
+
  if(Math.abs(moveY)/(swipe_t2-swipe_t1)>=1.3){//多次测试得出//仍然存在false bug
 
  doscroll=false;
 
  doscroll=false;
paa.innerHTML = "aaad=" + Math.abs(moveY)/(swipe_t2-swipe_t1);
+
 
 
  if(moveY>0){
 
  if(moveY>0){
 
  if(tag>1){
 
  if(tag>1){
Line 101: Line 101:
 
  setTimeout(tagUpdate,transitionTime);
 
  setTimeout(tagUpdate,transitionTime);
 
  paa.innerHTML = "tag=" + tag;
 
  paa.innerHTML = "tag=" + tag;
 +
  }else if(tag===1){
 +
      doscroll=true;
 
  }
 
  }
 
  }else{
 
  }else{

Revision as of 06:09, 22 July 2018