This commit is contained in:
libccy 2017-02-28 14:36:59 +08:00
parent 22a967919c
commit 18c2b82773
1 changed files with 7 additions and 1 deletions

View File

@ -32144,13 +32144,19 @@
var node=this.node.name;
if(node.offsetHeight<node.scrollHeight){
var that=this;
var num=40;
that.buttonscrollinterval=setInterval(function(){
if(node.scrollTop+node.offsetHeight>=node.scrollHeight){
clearInterval(that.buttonscrollinterval);
delete that.buttonscrollinterval;
}
else{
node.scrollTop+=2;
if(num>0){
num--;
}
else{
node.scrollTop+=2;
}
}
},16);
}