fix scrollbar after scroll animation
This commit is contained in:
parent
9c0305f8ed
commit
217271b867
1 changed files with 2 additions and 2 deletions
|
|
@ -1072,12 +1072,12 @@ var VirtualRenderer = function(container, theme) {
|
||||||
// trick session to think it's already scrolled to not loose toValue
|
// trick session to think it's already scrolled to not loose toValue
|
||||||
_self.session.$scrollTop = toValue;
|
_self.session.$scrollTop = toValue;
|
||||||
} else {
|
} else {
|
||||||
this.$inScrollAnimation = false;
|
_self.$inScrollAnimation = false;
|
||||||
clearInterval(_self.$timer);
|
clearInterval(_self.$timer);
|
||||||
|
|
||||||
_self.session.$scrollTop = -1;
|
_self.session.$scrollTop = -1;
|
||||||
_self.session.setScrollTop(toValue);
|
_self.session.setScrollTop(toValue);
|
||||||
callback && callback();
|
callback && callback();
|
||||||
}
|
}
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue