Commit ec8b8d84 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

bug fix

parent 729f4666
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -66,6 +66,13 @@ Liji.checkview=function(){
    if(Liji.retrytimes>0){
      Liji.retrytimes--;
      Liji.curr=parseInt(document.getElementById("count").value,10);
      t=Liji.svg[Liji.curr].getBoundingClientRect().top;
      if(Math.abs(t-r)>5){
        if(document.scrollingElement==null)
          document.documentElement.scrollTop+=t-r;
        else
          document.scrollingElement.scrollTop+=t-r;
      }
    }
    else
      document.getElementById("count").value=Liji.curr;