Skip to content
Snippets Groups Projects
Commit ec8b8d84 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

bug fix

parent 729f4666
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment