* Optimized Virtual Rendered animated scrolling

This commit is contained in:
Ruben Daniels 2012-04-07 23:28:59 +02:00
commit 7e70887b09

View file

@ -734,7 +734,7 @@ var VirtualRenderer = function(container, theme) {
if (center)
offset -= this.$size.scrollerHeight / 2;
if (this.$animatedScroll) {
if (this.$animatedScroll && Math.abs(offset - this.scrollTop) < 10000) {
var i = 0, _self = this,
steps = calcSteps(this.scrollTop, offset);
clearInterval(_self.$timer);