fix scrollbar after scroll animation

This commit is contained in:
nightwing 2012-05-06 21:17:12 +04:00
commit 217271b867

View file

@ -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);
} }