diff --git a/conllusvg/Liji.html b/conllusvg/Liji.html index 1634b3d5de56d9b6a5e9fe3902da737af10e8a97..667a51c62e7b62f66e6c9b53f04d4a757b17d648 100644 --- a/conllusvg/Liji.html +++ b/conllusvg/Liji.html @@ -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;