scrollToCenter is bumpy
(version 2.3.0)
Timeline._Band.prototype.scrollToCenter = function(date, f) {
var pixelOffset = this._ether.dateToPixelOffset(date);
if (pixelOffset < -this._viewLength / 2) {
this.setCenterVisibleDate(this.pixelOffsetToDate(pixelOffset + this._viewLength));
} else if (pixelOffset > 3 * this._viewLength / 2) {
this.setCenterVisibleDate(this.pixelOffsetToDate(pixelOffset - this._viewLength));
}
this._autoScroll(Math.round(this._viewLength / 2 -
this._ether.dateToPixelOffset(date)), f);
};
I don't really understand the point behind the two conditions and the
setCenterVisible, it makes the scrollToCenter() function bumpy
Original issue reported on code.google.com by Julien.C...@gmail.com on 10 Mar 2011 at 2:33
Original issue reported on code.google.com by
Julien.C...@gmail.com
on 10 Mar 2011 at 2:33